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

Ability to copy file data #1246

Closed
1 task
yorunoken opened this issue Jul 2, 2024 · 4 comments
Closed
1 task

Ability to copy file data #1246

yorunoken opened this issue Jul 2, 2024 · 4 comments
Labels
feature New feature request

Comments

@yorunoken
Copy link

Please describe the problem you're trying to solve

I was very saddened when I realized I couldn't copy file data.
you can only copy the path and the path of other stuff related to it, not the actual data (which is the most important one imo)

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

add one more option to the option tree shown when someone presses "c"

Additional context

could look something like this
image png
keybind should be C because I feel like this is the more important one, of course you can change it if you want.

@yorunoken yorunoken added the feature New feature request label Jul 2, 2024
@yorunoken yorunoken mentioned this issue Jul 2, 2024
59 tasks
@eljamm
Copy link
Contributor

eljamm commented Jul 2, 2024

If I'm not misunderstanding, you can already do this using yank by pressing y to copy the file and p to paste it, which you can remap to another key combination in your keymap.toml:

[[manager.prepend_keymap]]
on  = [ "c", "g" ]
run = "yank"
desc = "Copy the selected files"

If you'd like to also copy the file content to the clipboard, you can follow the Copy selected files to the system clipboard while yanking tip and Smart paste to paste files without entering the directory.

@yorunoken
Copy link
Author

that worked, thank you a lot!

@Brixy
Copy link
Contributor

Brixy commented Jul 2, 2024

Maybe it makes sense to extend the default keymap.toml in case yank as vim slang is not known: cy or cs (or the currently used cc) for "copy selection" and ch for "copy hovered".

This would play well together with #1227.

(I am happy to open a new issue for this if a closed issue is not a good place for this comment.)

Copy link

github-actions bot commented Aug 2, 2024

I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants