feat/fix: add rename cmd, fix rename error

- add <C-r> binding to omit the filename on rename (option is
  full_rename).
- call `silent! write!` on rename to avoid the `overwrite existing file`
  error when saving the buffer.
This commit is contained in:
kiyan
2021-02-22 20:53:12 +01:00
committed by Kiyan
parent ce2420b9da
commit 07da8a7242
6 changed files with 28 additions and 18 deletions

View File

@@ -65,7 +65,8 @@ end
local keypress_funcs = {
create = fs.create,
remove = fs.remove,
rename = fs.rename,
rename = fs.rename(false),
full_rename = fs.rename(true),
copy = fs.copy,
cut = fs.cut,
paste = fs.paste,