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

Copy action should also copy the full path to clipboard #253

Open
jelly opened this issue Feb 7, 2024 · 1 comment
Open

Copy action should also copy the full path to clipboard #253

jelly opened this issue Feb 7, 2024 · 1 comment

Comments

@jelly
Copy link
Member

jelly commented Feb 7, 2024

For multiple items join the list with .join(" ").

This needs some special shell escaping, in cockpit-podman we roll our own however that just escape with either " or ' depending if the text contains a ' or " it also only handles \ as requires quoting.

Either we implement the correct behaviour ourself or we use a library for it or cockpit.spawn?

https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
https://superuser.com/questions/1376351/why-does-ls-wrap-some-filenames-in-single-quotes

@jelly
Copy link
Member Author

jelly commented Feb 7, 2024

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

No branches or pull requests

1 participant