3 ms·
Back in the day, on the Amstrad CPC, there was a way to duplicate the cursor, move the duplicate around on any part of the screen and copy any text below the du
by skywal_l 6y ago
Back in the day, on the Amstrad CPC, there was a way to duplicate the cursor, move the duplicate around on any part of the screen and copy any text below the duplicate to where the actual cursor was. I always thought that this simple but powerful feature was missing on modern computers.
The submission is not equivalent but clearly can help avoid having to move your mouse around. Still wish I didn't have to modify the original command as, very often, I realize that I want to copy the command's output after I execute it.
- fiddlerwoaroof 6y agoIn iterm2, with shell integration enabled, hitting Command-Shift-A selects all the output since the last prompt.
- sime2009 6y agoI built some of those kinds of cursors features into my terminal. http://extraterm.org/features.html http://extraterm.org/features.html It is never too late to steal features that the Commodore 64 could do in the early 80s (!!!). oh, Extraterm can help you reuse previous output after the fact and without having to be clairvoyant.
- IronBacon 6y ago> I realize that I want to copy the command's output after I execute it. With Zsh, cheating a little, you can achieve it with: _insert-last-command-output () { LBUFFER+="$(LS_COLORS= TERM=vt220 eval $history[$((HISTCMD-1))])" } There's some junk used for my configuration, the relevant part is the "eval" of the last command on the history, it doesn't paste the output of the previous command but it's execute d again, this time with the output going straight in the edit buffer. I use it to manipulate the output of the previous command on the shell — it works better if the output is a single line — but I think it could be modified to put the output also on the clipboard...