aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-25 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-25 20:20:20 +0200
commit72578a19bf46b6e0519c3bbd5940e229a1cf5605 (patch)
tree196e6de0a85ba19dab78d35b9b7491990a29855a /src/e_events.go
parentred (diff)
downloadhardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.tar.gz
hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.tar.bz2
hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.tar.xz
hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.tar.zst
hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.zip
ok
Diffstat (limited to 'src/e_events.go')
-rw-r--r--src/e_events.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/e_events.go b/src/e_events.go
index 673fc1a..60f7db9 100644
--- a/src/e_events.go
+++ b/src/e_events.go
@@ -316,6 +316,16 @@ func e_mkdir(data *HardData, ui *HardUI) {
}
}
+func e_rename(data *HardData, ui *HardUI) {
+ if len(ui.buff) == 0 ||
+ data.litems.curr == nil || data.litems.curr.is_dir() == true {
+ return
+ }
+ data.litems.curr.Host.Name = ui.buff
+ // ui.insert_method = INSERT_MOVE
+ // i_insert_host(data, new_host)
+}
+
func e_set_drive_keys(data *HardData) {
data.insert.drive_keys = nil
for key := range data.insert.Drive {