4 ms·
The biggest issue I have with the text-manipulation capabilities of the CLI is the inability to select text in the prompt with the keyboard. Shift+navigation bu
by gue5t 15y ago
The biggest issue I have with the text-manipulation capabilities of the CLI is the inability to select text in the prompt with the keyboard. Shift+navigation buttons is standard to do this in GUI text boxes, but the CLI's slightly different notion of the cursor (box v. line caret) comes with the inability to select text keyboardly. How do others solve this problem? Are there e.g. readline replacements that have this capability?
- slug 15y agoBesides using yank/paste keyboard shortcuts, you can always use screen or tmux copy mode. If you need the output of a command sent to the clipboard, there's several ways, xclip is one of them.
- j-kidd 15y agoThis is why X allows you to copy text by highlighting it, and to paste text by middle clicking. The problem was solved a long time ago. Just grab the mouse and stop being a keyboard elitist.
- dredmorbius 15y agoaptitude install xclip I map 'xc' to 'xclip' and 'xp' to 'xclip -o' (paste) with shell scripts. Copy to/from clipboard via pipes. Though X11 copy/paste works pretty well also. There are the odd occasions where a mouse is the right tool for the job.