aboutsummaryrefslogtreecommitdiffstats
path: root/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-15 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-15 20:20:20 +0100
commitb29a8b31df90e2c7bde6542fe29bc0d8869007a9 (patch)
tree08120c56dfc7e93d2511cfb90e616331bbe1cdef /i_events.go
parentok (diff)
downloadhardflip-b29a8b31df90e2c7bde6542fe29bc0d8869007a9.tar.gz
hardflip-b29a8b31df90e2c7bde6542fe29bc0d8869007a9.tar.bz2
hardflip-b29a8b31df90e2c7bde6542fe29bc0d8869007a9.tar.xz
hardflip-b29a8b31df90e2c7bde6542fe29bc0d8869007a9.tar.zst
hardflip-b29a8b31df90e2c7bde6542fe29bc0d8869007a9.zip
ok
Diffstat (limited to 'i_events.go')
-rw-r--r--i_events.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/i_events.go b/i_events.go
index 7e2197c..acd8e96 100644
--- a/i_events.go
+++ b/i_events.go
@@ -273,10 +273,14 @@ func i_events(data *HardData) {
// TODO: maybe keymap these
} else if event.Rune() == '}' ||
event.Rune() == ']' {
- // TODO: next dir
+ if next := data.litems.curr.next_dir(); next != nil {
+ data.litems.curr = next
+ }
} else if event.Rune() == '{' ||
event.Rune() == '[' {
- // TODO: prev dir
+ if prev := data.litems.curr.prev_dir(); prev != nil {
+ data.litems.curr = prev
+ }
} else if event.Rune() == 'g' ||
event.Key() == tcell.KeyHome {
data.litems.curr = data.litems.head