kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.34k stars 151 forks source link

feat: add marking and cancelling for file operations #500

Open luteran42 opened 4 months ago

luteran42 commented 4 months ago

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 = "ï•› "
kamiyaa commented 4 months ago

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: