aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-09-23 15:30:05 +0200
committerJoe <rbo@gmx.us>2024-09-23 15:30:05 +0200
commitfc2186ec5c8859589d9cb3cb0612135d24369cfe (patch)
treee2f568a5947047cdbaabff6f750336b27b47a690 /src/i_ui.go
parentfixed segv (diff)
downloadhardflip-fc2186ec5c8859589d9cb3cb0612135d24369cfe.tar.gz
hardflip-fc2186ec5c8859589d9cb3cb0612135d24369cfe.tar.bz2
hardflip-fc2186ec5c8859589d9cb3cb0612135d24369cfe.tar.xz
hardflip-fc2186ec5c8859589d9cb3cb0612135d24369cfe.tar.zst
hardflip-fc2186ec5c8859589d9cb3cb0612135d24369cfe.zip
wip
Diffstat (limited to '')
-rw-r--r--src/i_ui.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/i_ui.go b/src/i_ui.go
index dbbcbf9..f18c090 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -512,6 +512,15 @@ func i_prompt_insert(ui HardUI, curr *ItemsNode) {
ui.buff.cursor, ui.dim[H] - 1)
}
+func i_prompt_fuzz(ui HardUI) {
+ prompt := "Search: "
+ i_draw_text(ui.s,
+ 1, ui.dim[H] - 1, ui.dim[W] - 1, ui.dim[H] - 1,
+ ui.style[DEF_STYLE], prompt)
+ ui.s.ShowCursor(len(prompt) + 1 +
+ ui.buff.cursor, ui.dim[H] - 1)
+}
+
func i_draw_remove_share(ui HardUI) {
text := "Really remove this share?"
@@ -819,6 +828,7 @@ func i_ui(data_dir string) {
INSERT_MODE: e_insert_events,
RENAME_MODE: e_rename_events,
HELP_MODE: e_help_events,
+ FUZZ_MODE: e_fuzz_events,
}
for {
data.ui.s.Clear()
@@ -861,6 +871,8 @@ func i_ui(data_dir string) {
i_prompt_insert(data.ui, data.litems.curr)
case HELP_MODE:
i_draw_help(&data.ui)
+ case FUZZ_MODE:
+ i_prompt_fuzz(data.ui)
}
if len(data.ui.match_buff) > 0 {
i_draw_match_buff(data.ui)