aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_events.go')
-rw-r--r--src/i_events.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/i_events.go b/src/i_events.go
index 4c37315..3767fa9 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_events.go
- * Wed Feb 21 12:10:39 2024
+ * Wed Feb 21 14:39:57 2024
* Joe
*
* events in the code
@@ -441,6 +441,9 @@ func i_events(data *HardData) {
} else {
i_unfold_dir(data, data.litems.curr)
}
+ } else if event.Rune() == 'a' ||
+ event.Rune() == 'i' {
+ data.ui.mode = INSERT_MODE
} else if event.Key() == tcell.KeyCtrlR {
event = nil
i_reload_data(data)
@@ -488,6 +491,11 @@ func i_events(data *HardData) {
data.opts.GPG = ""
}
}
+ case INSERT_MODE:
+ if event.Key() == tcell.KeyEscape ||
+ event.Key() == tcell.KeyCtrlC {
+ data.ui.mode = NORMAL_MODE
+ }
case MKDIR_MODE:
if event.Key() == tcell.KeyEscape ||
event.Key() == tcell.KeyCtrlC {