aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_host.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-26 12:10:43 +0200
committerjoe <rbo@gmx.us>2025-08-26 12:10:43 +0200
commitb8fde0598ef9914a6af4f6e4d029a7bb78e84dcf (patch)
tree8b9f089b4b9e264dfc5742ffdaa72dc13e3af295 /src/i_host.go
parentmake release unrelated (diff)
downloadhardflip-b8fde0598ef9914a6af4f6e4d029a7bb78e84dcf.tar.gz
hardflip-b8fde0598ef9914a6af4f6e4d029a7bb78e84dcf.tar.bz2
hardflip-b8fde0598ef9914a6af4f6e4d029a7bb78e84dcf.tar.xz
hardflip-b8fde0598ef9914a6af4f6e4d029a7bb78e84dcf.tar.zst
hardflip-b8fde0598ef9914a6af4f6e4d029a7bb78e84dcf.zip
reverted all fuzzmode shit but there is still a lot of crap
Diffstat (limited to 'src/i_host.go')
-rw-r--r--src/i_host.go39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/i_host.go b/src/i_host.go
index 92ec32f..6605c6b 100644
--- a/src/i_host.go
+++ b/src/i_host.go
@@ -87,7 +87,6 @@ func i_host_panel_host(ui HardUI, icons bool,
}
}
if host == curr {
- // style = style.Background(tcell.ColorBlack)
style = style.Reverse(true)
}
text := " "
@@ -110,8 +109,6 @@ func i_host_panel_host(ui HardUI, icons bool,
func i_draw_host_panel(ui HardUI, icons bool,
litems *ItemsList, data *HardData) {
- if ui.mode == FUZZ_MODE {
- }
i_draw_box(ui.s, 0, 0,
ui.dim[W] / 3, ui.dim[H] - 2,
ui.style[BOX_STYLE], ui.style[HEAD_STYLE], " Hosts ", false)
@@ -119,15 +116,7 @@ func i_draw_host_panel(ui HardUI, icons bool,
if litems == nil || litems.head == nil {
return
}
- // if ui.mode == FUZZ_MODE && data.lfuzz != nil {
- // i_draw_host_panel_fuzzy(ui, icons, data.lfuzz, data)
- // // TODO: draw fuzz list
- // return
- // }
for ptr := litems.draw; ptr != nil && line < ui.dim[H] - 2; ptr = ptr.next {
- if ui.mode == FUZZ_MODE && i_fuzz_check(ptr, &ui) == false {
- continue
- }
if ptr.is_dir() == false && ptr.Host != nil {
i_host_panel_host(ui,
icons,
@@ -151,31 +140,3 @@ func i_draw_host_panel(ui HardUI, icons bool,
}
}
}
-
-func i_fuzz_check(ptr *ItemsNode, ui *HardUI) bool {
- name := ""
- var name_runes []rune
- var end_runes []rune
-
- if len(ui.buff.data) == 0 {
- return true
- }
- if ptr.is_dir() == false && ptr.Host != nil {
- name = ptr.Host.Name
- } else if ptr.Dirs != nil {
- name = ptr.Dirs.Name
- }
- name_runes = []rune(name)
- for _, buff_ptr := range ui.buff.data {
- for _, name_ptr := range name_runes {
- if buff_ptr == name_ptr {
- end_runes = append(end_runes, buff_ptr)
- }
- }
- if len(end_runes) == 0 {
- return false
- }
- // TODO: here
- }
- return true
-}