Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add marking and cancelling for file operations #500

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

luteran42
Copy link
Contributor

@luteran42 luteran42 commented Feb 22, 2024

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

config/theme.toml Outdated Show resolved Hide resolved
@kamiyaa
Copy link
Owner

kamiyaa commented Feb 28, 2024

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 👍

@luteran42 luteran42 force-pushed the add_mark_and_cancel_file_op branch 3 times, most recently from ccf5021 to a225836 Compare March 13, 2024 00:02
Implement marking functionality with different colors for file op,
and the ability to clear marks, allowing for the cancellation of file operations.

{ keys = ["alt+v"], commands = ["cancel_file_operation"] },

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

Signed-off-by: Luterán Lajos <[email protected]>
Signed-off-by: Luterán Lajos <[email protected]>
Signed-off-by: Luterán Lajos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants