micro/internal
Dmitry Maluka ffbb257434
Support for highlighting all search matches (hlsearch) (#1762)
* Support for highlighting all search matches (hlsearch)

hlsearch is implemented efficiently using the buffer's line array,
somewhat similarly to the syntax highlighting.
Unlike the syntax highlighter which highlights the entire file,
hlsearch searches for matches for the displayed lines only.
Matches are searched when the given line is displayed first time
or after it was modified. Otherwise the previously found matches
are used.

* Add UnhighlightSearch action

and add it to the list of actions triggered by Esc key by default.

* Add comment explaining the purpose of search map

* Add hlsearch colors to colorschemes

Mostly just copied from the corresponding original (mostly vim) colorschemes.

* Highlight matches during/after replace as well

As a side effect it also changes the last search value, i.e. affects FindNext
and FindPrevious, but it's probably fine. In vim it works the same way.

* Improve hlsearch option description
2021-09-28 13:39:03 -07:00
..
action Support for highlighting all search matches (hlsearch) (#1762) 2021-09-28 13:39:03 -07:00
buffer Support for highlighting all search matches (hlsearch) (#1762) 2021-09-28 13:39:03 -07:00
clipboard Only use internal clipboard on error 2020-12-26 14:45:22 -05:00
config Support for highlighting all search matches (hlsearch) (#1762) 2021-09-28 13:39:03 -07:00
display Support for highlighting all search matches (hlsearch) (#1762) 2021-09-28 13:39:03 -07:00
info Clear prompt before callback 2020-11-16 14:07:22 -05:00
lua Make more libraries available (#1917) 2020-11-21 01:46:17 -05:00
screen Enable xterm automatically if screen init fails 2020-09-15 01:11:59 -04:00
shell Fix some quality issues (#1914) 2021-01-09 13:39:21 -05:00
util Improve comments 2021-08-21 17:58:30 -04:00
views Fix unsplit crash 2020-02-08 21:06:13 -05:00