Skip to content

Search the game's text, as desktop's search box does - #179

Merged
vadi2 merged 3 commits into
mainfrom
ccr-14671218-tf96z6-console-6-2
Nov 18, 2026
Merged

vadi2 merged 3 commits into
mainfrom
ccr-14671218-tf96z6-console-6-2

Conversation

@vadi2

@vadi2 vadi2 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Brief overview of PR changes/additions

  • A search button in the game's top bar, or Ctrl+F, opens a bar over the main console that searches its scrollback (the lines the app keeps).
  • It searches as desktop's search box does (TConsole::slot_searchBufferUp/Down): case ignored, the first search up from the bottom, each next one older (also the keyboard's search key, as desktop's Enter) or newer from the last line found, which the console scrolls to.
  • Matches, overlapping ones too, are drawn black on yellow, as TTextEdit draws them, while the bar is open.
  • What the bar says is a polite live region for TalkBack: how many lines match once typing pauses, then the line found, or that there is no more that way.
  • The search itself (ScrollbackSearch in :protocol) is plain Kotlin with JVM tests; docs/architecture.md gains "Searching the game's text".

Motivation for adding to Mudlet

  • Finding what the game said a while ago, a tell or a room's exits, is one of desktop's basic console tools; the app had no way to do it but scrolling.

Other info (issues closed, discussion etc)

🤖 Generated with Claude Code

https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J

A search button in the game's top bar, or Ctrl+F, opens a bar over the
main console that searches its scrollback as TConsole's search does:
case ignored, the first search up from the bottom, each next one older
or newer from the line the last one found, which the console scrolls
to. Matches are drawn black on yellow while the bar is open. What the
bar says (how many lines match once typing pauses, the line found, or
that there is no more) is a polite live region for TalkBack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J
aapt2 refuses an unescaped ' in a string resource.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J
…KeyDown

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J
@vadi2
vadi2 merged commit ffe39fb into main Nov 18, 2026
21 checks passed
@vadi2
vadi2 deleted the ccr-14671218-tf96z6-console-6-2 branch November 18, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants