Timeline for Copy to clipboard some previous lines of bash terminal with keyboard only
Current License: CC BY-SA 4.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Oct 14, 2024 at 20:04 | history | bounty ended | CommunityBot | ||
| S Oct 14, 2024 at 20:04 | history | notice removed | CommunityBot | ||
| Oct 10, 2024 at 19:09 | comment | added | Arkadiusz Drabczyk | ... or a lot of coding needed to duplicate the behavior of tmux or screen | |
| Oct 10, 2024 at 19:07 | comment | added | Arkadiusz Drabczyk | @Basj: if you don't want to use tmux or GNU screen it can only be achieved by your terminal emulator built-in feature | |
| Oct 7, 2024 at 18:22 | history | edited | Basj | CC BY-SA 4.0 | added 146 characters in body; edited tags |
| Oct 7, 2024 at 18:20 | comment | added | Basj | @KamilMaciorowski You're right. Let's say we use "Xfce 4 terminal emulator" (/usr/bin/xfce4-terminal), or Gnome Terminal. About tmux: if possible, I'd like to avoid having to run inside tmux to have this feature. I hope this is possible :) | |
| Oct 7, 2024 at 5:16 | comment | added | Kamil Maciorowski | "in a Bash terminal" – Bash is not a terminal, it is a shell. To copy output that has already got to your terminal, you need help from the terminal (terminal emulator). A terminal multiplexer may be handy. I think tmux can do what you want, out of the box, using its internal buffers (and it has other useful features, example). Integration with an external clipboard is possible. Will you consider using tmux? If yes, do you need support for external clipboard? If yes, should it be for X or Wayland? | |
| Oct 7, 2024 at 4:14 | answer | added | Jetchisel | timeline score: 0 | |
| Oct 6, 2024 at 18:23 | history | edited | Basj | CC BY-SA 4.0 | added 242 characters in body |
| S Oct 6, 2024 at 18:21 | history | bounty started | Basj | ||
| S Oct 6, 2024 at 18:21 | history | notice added | Basj | Canonical answer required | |
| Oct 5, 2024 at 19:53 | answer | added | David Yockey | timeline score: 0 | |
| Oct 5, 2024 at 19:46 | comment | added | Basj | Interesting but I don't know vim. Or maybe I know vim and I don't know vim at the same time @schrodingerscatcuriosity ;) | |
| Oct 4, 2024 at 13:22 | comment | added | schrodingerscatcuriosity | Not sure if suits you, but you can use (neo)vim. Example: 1- Open neovim, execute :r!ls -al. 2- Select the part you are interested with vim motions. 3- Use the system register to copy with "+y. All this implies that you have knowledge of vim, and may need some extra conf/install to make it work. | |
| Oct 4, 2024 at 12:04 | comment | added | Ed Morton | I googled "linux emulating mouse movement with keyboard" and see a few results, maybe start there. | |
| Oct 3, 2024 at 18:54 | comment | added | JayCravens | Then, in general, no. Not on a standard terminal emulator. You might be able to find one that has cursor movement, but I've never seen one. In case you change your mind: ls -al | head -2 | sed -n '2,$p' | xclip -i | |
| Oct 3, 2024 at 18:19 | history | edited | Basj | CC BY-SA 4.0 | edited title |
| Oct 3, 2024 at 18:05 | history | asked | Basj | CC BY-SA 4.0 |