diff options
author | 2020-08-27 20:35:41 -0400 | |
---|---|---|
committer | 2020-08-27 20:35:41 -0400 | |
commit | 4b78f9f512fb84018dc4cacf08557e83a38f18c6 (patch) | |
tree | 3651dc49a798a42ec6f190729c5f07fa06f9952e | |
parent | 587cb750afd36a2bb797fa6bec1bdf66fe665e9c (diff) |
Disable `ui.find.highlight_all_matches` by default.
It can be difficult to see what the current result is.
-rw-r--r-- | doc/manual.md | 9 | ||||
-rw-r--r-- | modules/textadept/find.lua | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/doc/manual.md b/doc/manual.md index c1a3d0dd..0c1ec03c 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -517,12 +517,11 @@ You can summon the find & replace pane via `Ctrl+F` on Windows, Linux and BSD, find and replace functionality you would expect, along with "Match Case", "Whole Word", "[Regex](#Regex.and.Lua.Pattern.Syntax)", and "In Files" options. The pane also stores find and replace history, up to 10 entries for each. As you -search, Textadept automatically highlights all instances of found text in the -current buffer. You can turn this off by setting -[`ui.find.highlight_all_matches`][]. For example, in your -*~/.textadept/init.lua*: +search, Textadept can automatically highlight all instances of found text in the +current buffer by setting [`ui.find.highlight_all_matches`][]. For example, in +your *~/.textadept/init.lua*: - ui.find.highlight_all_matches = false + ui.find.highlight_all_matches = true **Note:** Textadept does not support multi-line regex searches. diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index e1e18e8e..9654c988 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -60,7 +60,7 @@ local M = ui.find -- @field highlight_all_matches (boolean) -- Whether or not to highlight all occurrences of found text in the current -- buffer. --- The default value is `true`. +-- The default value is `false`. -- @field INDIC_FIND (number) -- The find results highlight indicator number. -- @field _G.events.FIND_WRAPPED (string) @@ -82,7 +82,7 @@ M.match_case_label_text = not CURSES and _L['Match case'] or _L['Case(F1)'] M.whole_word_label_text = not CURSES and _L['Whole word'] or _L['Word(F2)'] M.regex_label_text = not CURSES and _L['Regex'] or _L['Regex(F3)'] M.in_files_label_text = not CURSES and _L['In files'] or _L['Files(F4)'] -M.highlight_all_matches = true +M.highlight_all_matches = false M.INDIC_FIND = _SCINTILLA.next_indic_number() |