-
Notifications
You must be signed in to change notification settings - Fork 5
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
Copying the current line to clipboard or primary selection without using the mouse #11
Comments
Yeah honestly I've just been using the mouse to copy/paste when I need to, but definitely open to any better options. I'm not sure how shells open |
I don't think it has to do with readline. Well, I don't know what the whole readline is for, but I think that essentially bash copies the current line (well, I guess there's an entity where the currently being edited line is stored), opens a temporary file, and pastes the line there. Plus, upon closing the session, whatever that file contains the last time it was saved is executed. Ok, maybe you needn't this, sorry. |
Yeah, I figured it had to be something like that. I'm a little hesitant to implement that in As far as more directly putting the command on the clipboard, this would be pretty easy on MacOS as the |
Premise: Mice bring deseases.
Your program uses the readline library, so it allows me to take full advantage of the
vi
editing mode that I use, except that pressingv
does not open the editor to edit the command. This, by itself, is not a problem, since your program is just for that, editing the command easily.However, when I want to copy the command from the shell to somewhere else (e.g. here), I have to approaches:
vi
when pressingv
.I don't know if it's possible for you to allow in-editor editing of the command. Maybe you have another way to copy the command to the clipboard or primary selection?
The text was updated successfully, but these errors were encountered: