joshuto icon indicating copy to clipboard operation
joshuto copied to clipboard

feat: add marking and cancelling for file operations

Open luteran42 opened this issue 1 year ago • 1 comments

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: 2024-03-14T01:11:36,900766630+01:00

alt+v: 2024-03-14T01:11:45,752700310+01:00

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 = " "

luteran42 avatar Feb 22 '24 15:02 luteran42

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:

kamiyaa avatar Feb 28 '24 01:02 kamiyaa