From 576189533ce5b7a927bc98eae5329ff3928b3508 Mon Sep 17 00:00:00 2001 From: BlackAngelTVdev Date: Fri, 13 Nov 2026 08:22:07 +0100 Subject: [PATCH] docs(basic): document the in-place scrollback search --- docs/basic.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/basic.rst b/docs/basic.rst index ae98ed1..0540aab 100644 --- a/docs/basic.rst +++ b/docs/basic.rst @@ -26,8 +26,18 @@ Next shell prompt :sc:`scroll_to_next_prompt` (see :ref:`shell_integra 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) +Search scrollback in place :sc:`search_scrollback_prompt` ========================= ======================= +The in-place search highlights every match without replacing the screen with a +pager. Prefix the query with ``\c`` to match case sensitively and with ``\r`` +to use a regular expression; both modifiers can be combined. While the search +is active, :kbd:`n` jumps to the next match, :kbd:`N` to the previous one and +:kbd:`Escape` ends it. The ``[current/total]`` counter is shown in the window +title and matches use the first marker color (see :opt:`mark1_foreground`). +The :ac:`scrollback_search_next`, :ac:`scrollback_search_prev` and +:ac:`clear_scrollback_search` actions can also be mapped directly. + The scroll actions only take effect when the terminal is in the main screen. When the alternate screen is active (for example when using a full screen program like an editor) the key events are instead passed to program running in the