Magic I just learned: in Terminal, do a thing with output (like ls), then do cmd-shift-A.
This selects the output of the previous command.
Cmd-Ctrl-V. Pastes text fully escaped, including spaces.
Cmd-Up is still my favorite new (El Cap) Terminal feature.
This scrolls you back up to the previous command.
In Terminal, adding Shift for these commands extends the selection, just like in an editor.
Don’t forget that two-finger scrolling now works w/ less, man pages, etc…
Yup and you can toggle mouse reporting with ⌘R. I do it a lot with tmux.
You can also use the Fn modifier when clicking or dragging, to interact with the terminal view.
The basics of marking in Terminal.app. Explains those gutter marks!
Anyone knows what’s Paste Selection?
Seems to be more “Insert Selection”. Takes what’s selected and puts it at the cursor w/o changing clipboard.
So a selection-specific pasteboard in Terminal. Reminds me of selecting to copy during my linux days.
The selection pasteboard is named “com.apple.Terminal.selection” and is public.
Previously: Craig’s Terminal Tips.
Stay up-to-date by subscribing to the Comments RSS Feed for this post.