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>
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)