commit 626c8692fa7f3dadb3c83a7c5b68b129e9e04ad5
parent 4ee5ad27da617738b33a8e5e46aa75afcc2e54d0
Author: lumidify <nobody@lumidify.org>
Date: Thu, 5 Oct 2023 12:18:49 +0200
Change default for highlight-search to false
Diffstat:
4 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/keys_command.c b/keys_command.c
@@ -890,6 +890,8 @@ edit_nextsearch(ledit_view *view, char *key_text, size_t len, size_t lang_index)
/* FIXME: the current "highlight_search" support is a bit weird and will probably conflict
in some way if other support for visual mode (e.g. only search in selection) is added */
/* FIXME: support visual mode, i.e. change selection to new place? */
+/* FIXME: maybe have separate setting to allow highlighting search just when in visual
+ mode (i.e. don't switch to visual mode automatically) */
void
search_next(ledit_view *view) {
view_wipe_line_cursor_attrs(view, view->cur_line);
diff --git a/leditrc.5 b/leditrc.5
@@ -174,7 +174,7 @@ Whether entire words should be highlighted when searching or replacing with conf
Note that the mode is automatically switched to visual when this is set and a word needs to be highlighted.
This is a bit weird, but in order to keep everything a bit more consistent, selections are curently
only allowed in visual mode.
-Default: true
+Default: false
.It Ar extra-line-spacing
Extra space between each line (in pixels).
Note that this is very rudimentary at the moment.
diff --git a/leditrc.example b/leditrc.example
@@ -18,7 +18,7 @@ theme = {
scrollbar-step = 20
scrollbar-bg = CCCCCC
scrollbar-fg = 000000
- highlight-search = true
+ highlight-search = false
extra-line-spacing = 0
}
diff --git a/theme_config.h b/theme_config.h
@@ -47,7 +47,7 @@ static const char *SCROLLBAR_BG = "#CCCCCC";
static const char *SCROLLBAR_FG = "#000000";
/* whether to highlight entire words when searching/replacing */
/* FIXME: this should maybe be in a separate "general config" section */
-static const char *HIGHLIGHT_SEARCH = "true";
+static const char *HIGHLIGHT_SEARCH = "false";
/* extra space between lines (in pixels) */
static const char *EXTRA_LINE_SPACING = "0";