I'm using Terminal.app on Mac OS10.6.3, with gnu screen and zsh.
What I want to do is, see pwd
(or an URL) in Terminal.app and double click on it, and select the whole path, to copy and paste after that.
But what I get now is a single directory name, because '/' is not treated as a word. I found that iTerm has a setting to change it(iTerm -> Preferences -> Mouse -> Characters considered part of a word), but is there any way to do this on my environment?
Given the age of this question, you have probable found the answer elsewhere already, but if not, here's how to do it in "newer" versions of Terminal (Leopard 10.5 and Snow Leopard 10.6)...
⌘ ⇧ double-click
See also here.
Just to summarize:
to select a path or a URL: command-shift-double-click
⌘ ⇧ double-click
to select non-contiguous selections: command-click-and-drag
⌘ click-and-drag
to select block regions: alt-click-and-drag
⌥ click-and-drag
Hope this helps.
Loads more useful keyboard shortcuts in this article.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With