Add a default mapping for searching the scrollback

Opens the scrollback pager in search mode. Particularly useful for
newbies on macOS that are used to using cmd+f to trigger search mode.

If there is a current selection, it is automatically searched for.
This commit is contained in:
Kovid Goyal
2025-12-01 08:10:07 +05:30
parent 9b6b9733b9
commit 20b39ee163
10 changed files with 54 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ Previous shell prompt :sc:`scroll_to_previous_prompt` (see :ref:`shell_int
Next shell prompt :sc:`scroll_to_next_prompt` (see :ref:`shell_integration`)
Browse scrollback in less :sc:`show_scrollback`
Browse last cmd output :sc:`show_last_command_output` (see :ref:`shell_integration`)
Search scrollback in less :sc:`search_scrollback` (also :kbd:`⌘+F` on macOS)
========================= =======================
The scroll actions only take effect when the terminal is in the main screen.

View File

@@ -177,6 +177,10 @@ Detailed list of changes
- Do not rewrap the text in the alternate screen buffer. Avoids flicker during
live resize with no :opt:`resize_debounce_time` (:disc:`9142`)
- Add a default mapping :ac:`search_scrollback` to open the scrollback in a
pager in search mode. If any text is currently selected it is automatically
searched for.
0.44.0 [2025-11-03]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~