Add search in ui/docs

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-05-18 21:22:17 +02:00
parent d451965fa0
commit 85c2806604
8 changed files with 318 additions and 9 deletions
+6
View File
@@ -98,3 +98,9 @@ keybindings:
toggle: "space"
edit_config: "e,enter"
filter: "/"
docs:
search: "/"
search_reset: "r"
search_next: "n"
search_prev: "N"
+8
View File
@@ -66,6 +66,13 @@ type PluginsKeys struct {
Filter string `mapstructure:"filter"`
}
type DocsKeys struct {
Search string `mapstructure:"search"`
SearchReset string `mapstructure:"search_reset"`
SearchNext string `mapstructure:"search_next"`
SearchPrev string `mapstructure:"search_prev"`
}
type Keybindings struct {
Global GlobalKeys `mapstructure:"global"`
Intercept InterceptKeys `mapstructure:"intercept"`
@@ -75,4 +82,5 @@ type Keybindings struct {
Diff DiffKeys `mapstructure:"diff"`
Findings FindingsKeys `mapstructure:"findings"`
Plugins PluginsKeys `mapstructure:"plugins"`
Docs DocsKeys `mapstructure:"docs"`
}