Skip to content

Scrollback search feature - #89

Merged
nihiL7331 merged 21 commits into
mainfrom
scrollback-search
Sep 24, 2026
Merged

nihiL7331 merged 21 commits into
mainfrom
scrollback-search

Conversation

@nihiL7331

Copy link
Copy Markdown
Owner

Handles #83.

This PR implements searching through the scrollback buffer using regex.
Hidden behind SFTE_SEARCH with multiple configuration options (mostly visual stuff + buffer sizes).
It uses regex.h for POSIX implementations, and tiny-regex-c if SFTE_NO_POSIX is defined.

Shortcuts used to control searching are:

  • Ctrl+Shift+/ to toggle,
  • Escape (or Backspace if query is empty) to exit,
  • Arrow Up/Down to move between matches.

There were some changes to the general codebase alongside that:

  • Added a return value to shortcut callbacks, where:
    • 1 means that the input for that shortcut should be consumed,
    • 0 if it should not.
  • Replaced the v1.xx versioning with SemVer v1.x.y versioning.
  • Renamed argb_color to rgb_color in SFTE_COLOR_BLEND_PIXEL (since it's RGB888 and not ARGB8888).
  • Removed dependency checks from #ifs in codebase, since dependency checks are handled by _SFTE_ENSURE_DEPS now.
  • Optimized dirtying by removing unnecessary full screen dirtying in sfte_parse and _sfte_grid_dirty_trail.

@nihiL7331 nihiL7331 self-assigned this Sep 24, 2026
@nihiL7331
nihiL7331 merged commit ed60e69 into main Sep 24, 2026
1 check passed
@nihiL7331
nihiL7331 deleted the scrollback-search branch September 24, 2026 17:56
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.

1 participant