• Loadable module for displaying a file's extended information (with sea

    From Rob Swindell@VERT to GitLab issue in main/sbbs on Tue Nov 24 11:13:08 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1421
    2026-11-24 11:13:08 -0800

    ## Summary

    Add an optional loadable module that displays one file's extended information (the screen shown by the **E**xtended Info command), with a stock JavaScript implementation. A module could highlight search matches in the extended description, as `listfiles.js` now does in its listings, and give sysops far more control over that screen than the built-in display allows.

    ## Today

    The built-in display (`showfileinfo()` in `file.cpp`) is used by:

    - the **E** key in the built-in file lister and in `listfiles.js` (through `bbs.view_file_info()`), and the view-file prompt it returns to
    - the file information, download and remove commands that step through files matching a filespec (`listfileinfo()`)

    Sysops can change it only in limited ways:

    - `text/menu/fileinfo.*`, when present, replaces the header fields (library, directory, name, size, checksums, uploader, dates and so on), using `@FILE_*@` codes
    - otherwise the header comes from the `Fi*` strings in `text.dat`
    - the extended description is always printed after the header, as is, with no paging, scrolling or highlighting

    The existing **View File Info** loadable module (SCFG->System->Loadable Modules, `fileinfo` in `main.ini`) doesn't cover this. It replaces all of `listfileinfo()` (the file-by-file loop and its prompts, given the directory code, mode and filespec), not the display of one file, so it is never run for the **E** key.

    ## Why

    - **Search highlighting:** after a find (e.g. "NOFX"), a match is often in the extended description only (a long list of stem track names, for example). The listing can now highlight it, but the extended info screen the user goes to next can't.
    - **Customization:** a JS module with `modopts.ini` options, as `listfiles.js` has, could let sysops choose fields, formats and colors, and show long extended descriptions in a scrolling pane, rather than relying on a menu file and `text.dat` strings.
    - **Room to grow:** e.g. include media/SAUCE details (as `fileinfo.js` produces for a Viewable File Type), or archive contents, on the same screen.

    ## Proposal

    1. A new loadable module setting for displaying one file's information, run by `showfileinfo()` (and so by every caller above) when configured, falling back to the built-in display when not.
    2. Arguments: the directory's internal code, the filename, whether to show the extended description, and the search expression when the file was reached from a find (so the module can highlight it). The built-in lister and `listfiles.js` would need to pass the expression along, e.g. through `bbs.view_file_info()`.
    3. A stock JS implementation, reusing `listfiles_lib.js` for search-term highlighting and color options, configured in its own `modopts.ini` section.

    ## Open questions

    - **Naming:** `exec/fileinfo.js` (media file details) and the existing View File Info module setting already use the obvious names. The new setting and script need names that won't be confused with either.
    - **Prompt:** should the module own the prompt after the information too (Batch, View, Extended, Edit, Delete, Next, Previous, Quit), or only the display?
    - **Menu file:** should `text/menu/fileinfo.*` keep working with the module configured (e.g. the module shows it for the header when present)?

    - *Authored by Claude (Claude Code), on behalf of @rswindell*

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab issue in main/sbbs on Tue Nov 24 13:09:40 2026
    close https://gitlab.synchro.net/main/sbbs/-/work_items/1421
    2026-11-24 13:09:38 -0800

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net