feat(search): highlight the current match in its own color

Every match of the in-place search used the same mark color, so after pressing
n or N the only hint of the current match was the counter in the window title,
which is easy to miss on a short query or a dense screen. The marker now colors
the current match with the second mark color and keeps the rest on the first
one, rebuilding the marker whenever the index changes.

Fixes #51
This commit is contained in:
BlackAngelTV committed 2026-12-03 10:06:04 +01:00
1 parent b406be9394
commit 4df542f590
6 files changed
+91 -6

No files matched your search

+2
View File
@@ -279,6 +279,8 @@ Detailed list of changes
with :kbd:`n` and :kbd:`N`. Prefix the query with :code:`\c` for a case
sensitive search and :code:`\r` for a regular expression; write a doubled
backslash (:code:`\\c`, :code:`\\r`) to search for those prefixes literally.
The current match is drawn with the second mark color, so the match reached
with :kbd:`n` and :kbd:`N` is visible without looking at the window title.
See :doc:`basic` for the details.
- A configurable :opt:`leader` key now opens a which-key panel listing every