1. 30 9月, 2021 1 次提交
  2. 29 9月, 2021 2 次提交
    • D
      Support for highlighting all search matches (hlsearch) (#1762) · ffbb2574
      Dmitry Maluka 提交于
      * 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
      ffbb2574
    • D
      Fix some issues with default colors in colorschemes (#2225) · 9ad4437a
      Dmitry Maluka 提交于
      * Fix default colors for unconfigured syntax groups
      
      When GetColor is called for a syntax group not specified in the
      colorscheme, it should fallback not to the terminal's default colors
      (tcell.DefaultColor) but to the colorscheme's defaults (DefStyle)
      which may be different from tcell.DefaultColor.
      
      For example, if we are using micro's default colorscheme in a terminal
      which uses a black-on-white theme, then dots and commas in Go files
      ("symbol" syntax group in go.yaml) are displayed black on a dark
      background, i.e. barely visible.
      
      * Avoid using terminal's default colors directly
      
      If a syntax group color is set to "default" (which we have for some
      syntax groups in some colorschemes), it defaults to the terminal's
      default colors (tcell.DefaultColor), which is fine for 16-color
      colorschemes but not quite fine for truecolor and 256-color
      colorschemes which should not depend on the terminal colors.
      It should default to the colorscheme's default (DefStyle) instead.
      
      For example, if we are using micro's default colorscheme in a terminal
      which uses a black-on-white theme, then "bool" type in C files
      ("type.extended" syntax group in c.yaml) is displayed black on a dark
      background, i.e. barely visible.
      9ad4437a
  3. 25 9月, 2021 4 次提交
  4. 26 8月, 2021 1 次提交
  5. 25 8月, 2021 1 次提交
  6. 22 8月, 2021 4 次提交
  7. 21 8月, 2021 4 次提交
  8. 19 8月, 2021 4 次提交
  9. 18 8月, 2021 3 次提交
  10. 14 8月, 2021 1 次提交
  11. 07 8月, 2021 4 次提交
  12. 03 8月, 2021 4 次提交
  13. 22 7月, 2021 3 次提交
    • P
      More precise filename detection for shell scripts · 6e1fe5b3
      pyfisch 提交于
      Make the regular expression much more precise:
      
      * match literal dots instead of any char (match rc.conf but not rcXconf)
      * match special filenames exactly (match PKGBUILD but not myPKGBUILD.something)
      
      Run build-all to update internal/config/runtime.go
      
      closes #2163
      6e1fe5b3
    • P
      Update rust syntax: don't highlight lifetimes (#2164) · 84a490f1
      pyfisch 提交于
      Work-around rust lifetimes and character literals both using single quotes.
      84a490f1
    • P
      Update rust syntax: char literal (#2162) · 42a93026
      pyfisch 提交于
      Highlight character literals started with a single quote (').
      Importantly this ensures correct highlighting for the character literal '"'.
      Limitation: rust char literals contain exactly one character, however this isn't checked by the highlighter.
      
      Closes #2160
      42a93026
  14. 19 7月, 2021 1 次提交
  15. 17 7月, 2021 1 次提交
  16. 14 7月, 2021 2 次提交