• ctrl/text.dat docs/v322_new.md exec/load/text.js src/sbbs3/sbbs.h text

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Jul 25 23:01:28 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ef1f8026a4d5bb11b91165ee
    Modified Files:
    ctrl/text.dat docs/v322_new.md exec/load/text.js src/sbbs3/sbbs.h text.h text_defaults.c text_id.c useredit.cpp
    Log Message:
    Uedit: boolean 'T'ext search, dedicated prompt for the '/' ARS search

    The sysop user editor's T)ext search now compiles its query with
    boolsrch.c, like the message base, mail, file list and file pager
    searches: AND/OR/NOT, parenthesized grouping, "quoted phrase"
    whole-word terms, '?' for the textsrch help menu, and a diagnostic for
    a malformed expression. searchup()/searchdn() take the compiled
    expression rather than an upper-cased string, so the per-record
    strupr() goes away. The haystack is still the whole tab-delimited
    user.tab record, so bare one-word queries match as before and a quoted
    term gets a word boundary at each field edge.

    The '/' AR-string search prompted with text[SearchStringPrompt], which
    gained a "(?=help)" hint in 76dba467f3 (sheets-27-dance) when '?' was
    wired up at the boolean-search prompts -- a binding that prompt does
    not implement. It gets its own string now: text[UeditARSearchPrompt]
    (text.dat 949).

    Both prompts leave the previous search criteria intact when nothing is
    entered, and free what they replace; the compiled AR string leaked on
    every re-entry of '/' and on disconnect.

    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Dec 5 20:18:52 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/d6d36e615e7b405868062d00
    Modified Files:
    ctrl/text.dat docs/v322_new.md exec/load/text.js src/sbbs3/sbbs.h text.h text_defaults.c text_id.c writemsg.cpp text/menu/editor.asc
    Log Message:
    Message editor: /Q quotes lines of the original message (#1011)

    A user who declined (or under-used) quoting when starting a reply had to
    abort and start over to quote more of the message being replied to. /Q
    reopens the quote-lines prompt from inside the internal editor and
    inserts the chosen lines where the command was typed (normally the end
    of the message, or the /I insertion point), or before line x with /Qx.
    Ctrl-C at the prompt quotes nothing. It works on any terminal, so a user limited to the line editor can still quote. "No message to quote" (new NoMessageToQuote text string) is shown when there is nothing to quote: a
    new message, quoting not allowed there, or a restored draft.

    The quote-lines prompt loop moves out of writemsg() into quote_lines(),
    shared by the reply-time prompt and /Q.

    Fix: a list such as "1,3-4" quoted lines 1 through 4, because the '-'
    of a later range was taken as ending the first number's range (since 7e3e47141a5, 2000-10-10).

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

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