Closed altsem closed 3 months ago
I am guessing this requires an external crate to access the clipboard, right? If so, arboard seems to be the most downloaded one, apart from a Windows-only crate.
Yea I think pulling in a dependency is the way to go here. Arboard seems fine!
I have implemented it. One issue is that, for the X clipboard (not sure about wayland), the copied content is dropped when the program exits. That is how it works for most Linux apps though, so I guess it wouldn't be a problem (there is a workaround, if needed) I just have a couple of questions before I submit the PR.
Could start somewhere and iterate! Happy to see this catching interest :)
It'd be useful to be able to copy a commit hash. Select anything with a commit hash, press
y
and it would be copied to your clipboard.y
is already bound toshow_refs
in the current config, but I suggest movingshow_refs
to maybeY
.