• exec/listfiles.js text/me

    From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Wed Nov 18 19:34:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/43f3656560b7ae4749969de1
    Added Files:
    exec/listfiles.js text/menu/listfiles_help.msg
    Modified Files:
    ctrl/modopts.ini exec/load/listfiles_lib.js exec/tests/listfiles/lib.js Log Message:
    listfiles.js: stock List Files loadable module

    A JavaScript replacement for the built-in file lister, used when
    "listfiles" is set as the List Files loadable module in SCFG. By default
    its listings look like the built-in lister's, in every listing mode
    (plain, new-file scan, search, extended information and view).

    Sysop customization, with no code changes:
    - Directory headers: data/dirs/<code>.hdr, else the first of the menu
    files listfiles_<code>_head, listfiles_lib<N>_head and listfiles_head,
    else the built-in box; and likewise an optional footer (*_tail).
    - Each file's line is an @-code template, with the usual width and
    alignment modifiers: any @FILE_*@ code, plus the module's own codes for
    the name, size, description, markers, letter, tag and colors.
    - Markers, colors, box characters, the commands bar, the prompt and
    indicators are [listfiles] options in ctrl/modopts.ini, which can be set
    for one library ([listfiles:lib<N>]) or one directory
    ([listfiles:<code>]).

    For users with batch flagging enabled, on a terminal that can position
    the cursor (ANSI or PETSCII), the listing is interactive: a highlighted
    current file moved with the arrow keys (scrolling as needed), PgUp/PgDn/Home/End (and Backspace), Space or a double-click to tag files
    (check marks), mouse selection, and the batch commands acting on the
    tagged files or the current one. Arrows on either side of the prompt's
    verb show whether there are more files above or below, and the current
    file's position is shown above the prompt. The '?' help is the new text/menu/listfiles_help.msg. On other terminals, batch flagging works as
    it does in the built-in lister (letters A-Z per screen).

    Fixes #1353

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thu Nov 19 15:05:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/1b1e2a4087eb3c4acce5a9a4
    Modified Files:
    exec/listfiles.js text/menu/listfiles_help.msg
    Log Message:
    listfiles.js: Delete key removes files; report vanished files

    In the interactive mode, the Delete key now acts as the R(emove) command,
    as it deletes messages in msglist.js. The help screen mentions it.

    B/D/R/M on a file that another node removed after it was listed now
    prints "File does not exist" (other failures are already reported by the
    bbs methods themselves).

    A search (FL_FIND) with no expression displays nothing, as the built-in
    file lister does, rather than an invalid search expression error, and the user's new-file time is updated only after the expression is validated.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>