Skip to content

Copying the current line to clipboard or primary selection without using the mouse #11

@Aster89

Description

@Aster89

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 pressing v 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:

  • selecting the command with the mouse (to have it stored in the primary selection), which is against the premise;
  • using this approach (to have it stored in the primary selection and/or clipboard, as I like), which assumes that I can edit the command in vi when pressing v.

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions