-
-
Notifications
You must be signed in to change notification settings - Fork 833
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
Add action to copy link at mouse cursor #527
Comments
I think a smaller step could be to add basic lua functions to manipulate the clipboards, and I could use it to override But I wouldn't be able to have one binding to open the uri, and another one to copy it, as I don't have access to pressed modifiers from lua code afaik, right? |
I've been thinking this over a bit in the background, and I was leaning towards exposing a couple of methods on the
On the
With those functions, you could define a custom event that you trigger from a mouse binding that does what you want; the example in the docs here uses a key assignment to trigger the custom event, but the same technique should work for a mouse assignment: I'm not opposed to also adding a shortcut for the action you described, but I do worry a little bit about having too many over-specialized actions built-in, which is why I think it would be great to build out this set of functions. |
Oh yes, I forgot about custom events, that would be the best option indead! 😍 |
Is your feature request related to a problem? Please describe.
When working remotely, it's not always obvious how to open links (http but also others like file or custom ones) or how to copy one efficiently.
Describe the solution you'd like
I'm thinking about an action
CopyLinkAtMouseCursorTo(clip)
similar toOpenLinkAtMouseCursor
that would instead copy the link to a clipboard.Describe alternatives you've considered
Selecting the link manually with the mouse then copy it.
But this doesn't always work / is not always complete, like when the link is not contiguously displayed but has escape sequences that makes it a link.
The text was updated successfully, but these errors were encountered: