Introduction
Introduction Statistics Contact Development Disclaimer Help
tChange default for highlight-search to false - ledit - Text editor (WIP)
git clone git://lumidify.org/ledit.git (fast, but not encrypted)
git clone https://lumidify.org/git/ledit.git (encrypted, but very slow)
Log
Files
Refs
README
LICENSE
---
commit 626c8692fa7f3dadb3c83a7c5b68b129e9e04ad5
parent 4ee5ad27da617738b33a8e5e46aa75afcc2e54d0
Author: lumidify <[email protected]>
Date: Thu, 5 Oct 2023 12:18:49 +0200
Change default for highlight-search to false
Diffstat:
M keys_command.c | 2 ++
M leditrc.5 | 2 +-
M leditrc.example | 2 +-
M theme_config.h | 2 +-
4 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/keys_command.c b/keys_command.c
t@@ -890,6 +890,8 @@ edit_nextsearch(ledit_view *view, char *key_text, size_t l…
/* FIXME: the current "highlight_search" support is a bit weird and will proba…
in some way if other support for visual mode (e.g. only search in selection…
/* FIXME: support visual mode, i.e. change selection to new place? */
+/* FIXME: maybe have separate setting to allow highlighting search just when i…
+ 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
t@@ -174,7 +174,7 @@ Whether entire words should be highlighted when searching …
Note that the mode is automatically switched to visual when this is set and a …
This is a bit weird, but in order to keep everything a bit more consistent, se…
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
t@@ -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
t@@ -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";
You are viewing proxied material from lumidify.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.