Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

double click and select the path(including '/') in Terminal.app

Tags:

terminal

macos

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?

like image 577
mash Avatar asked May 26 '10 02:05

mash


1 Answers

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.

like image 156
pvandenberk Avatar answered Nov 10 '22 13:11

pvandenberk