micro/runtime
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
..
colorschemes Support for highlighting all search matches (hlsearch) (#1762) 2021-09-28 13:39:03 -07:00
help Support for highlighting all search matches (hlsearch) (#1762) 2021-09-28 13:39:03 -07:00
plugins Update comment filetype when commenting 2021-08-20 14:42:38 -04:00
syntax Syntax Highlighting Support for FreeBSD Kernel Configuration Files (#2220) 2021-09-24 14:39:46 -07:00
README.md Update syntax readme and docs 2017-03-26 18:58:08 -04:00
runtime.go normalize path - force slash separator to access embed FS (#2197) 2021-08-25 16:26:54 -04:00

Runtime files for Micro

This directory will be embedded in the Go binary for portability, but it may just as well be put in ~/.config/micro. If you would like to make your own colorschemes and syntax files, you can put them in ~/.config/micro/colorschemes and ~/.config/micro/syntax respectively.