Add cut,copy and paste functionality.

This commit is contained in:
Kristijan Husak
2020-07-16 11:39:44 +02:00
parent 20f39a951a
commit 9b20fcba72
6 changed files with 125 additions and 1 deletions

View File

@@ -38,6 +38,12 @@ function M.on_keypress(mode)
return fs.remove(node)
elseif mode == 'rename' then
return fs.rename(node)
elseif mode == 'copy' then
return fs.copy(node)
elseif mode == 'cut' then
return fs.cut(node)
elseif mode == 'paste' then
return fs.paste(node)
end
if mode == 'preview' then