diff options
Diffstat (limited to 'src/e_events.go')
-rw-r--r-- | src/e_events.go | 10 |
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 { |