From 4af189ccd3f6efe114f820fdcf8e582845c0219e Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Mon, 27 Jul 2026 19:04:19 +0200 Subject: [PATCH] Add :find binds to RC and bikeshed settings --- .tridactylrc | 11 +++++++++++ src/lib/config.ts | 2 +- src/static/css/commandline.css | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.tridactylrc b/.tridactylrc index f67350f3..5425b91e 100644 --- a/.tridactylrc +++ b/.tridactylrc @@ -106,6 +106,17 @@ " bind gr reader " bind gR reader --tab " +" " Use experimental :find mode +" bind / fillcmdline find -r +" bind ? fillcmdline find -r --reverse +" bind n findnext --search-from-view +" bind findnext --search-from-view +" bind N findnext --search-from-view --reverse +" bind findnext --search-from-view --reverse +" bind gn findselect +" bind gN composite findnext --search-from-view --reverse; findselect +" bind , nohlsearch +" " " Suspend / "discard" all tabs - handy for stretching out battery life. Now a default command, aliased here for my muscle memory " command discardall tabdiscard --all " diff --git a/src/lib/config.ts b/src/lib/config.ts index d37b04b3..150d0142 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -1374,7 +1374,7 @@ export class default_config { /** * Number of characters to use as context for the matches shown in completions */ - findcontextlen = 100 + findcontextlen = 50 /** * Whether find should be case-sensitive diff --git a/src/static/css/commandline.css b/src/static/css/commandline.css index 9641e458..7789a567 100644 --- a/src/static/css/commandline.css +++ b/src/static/css/commandline.css @@ -171,7 +171,7 @@ a.url:hover { } .FindCompletionSource .position { - width: 6em; + width: 2em; padding-right: 0.75em; text-align: right; }