joshuto
joshuto copied to clipboard
feat: add marking and cancelling for file operations
Implement marking functionality and the ability to clear marks, allowing for the cancellation of file operations.
also deselects entries after a file operation succeeds.
key:
{ keys = ["alt+v"], commands = ["cancel_file_operation"] },
e.g:
alt+v:
I like getting visual feedback, when I yy/pl/x files. 🙂
Update: also different colors for file operations:
[mark.cut]
fg = "red"
bold = true
# prefix = " "
[mark.copy]
fg = "rgb(235, 104, 65)" # orange
bold = true
# prefix = " "
[mark.symlink]
fg = "rgb(254, 132, 172)" # pink
bold = true
# prefix = " "
While I like the idea of marking files that have been cut/copy into "clipboard", I'm finding the solution a bit cumbersome ergonomically.
I will need to do some more testing to figure out what it is, will keep you posted :+1: