In Mac OS X's Terminal.app, I'd like to set my own selection delimiters such that if I have the text foo.bar.baz and double click bar, only bar is selected.

Is this possible and if so how?

link|improve this question

75% accept rate
feedback

2 Answers

up vote 2 down vote accepted

It would appear from this question that it isn't configurable, at least system wide, and that configurable applications are rare. However, iTerm was mentioned as one that is.

link|improve this answer
thanks. that one didn't show up when i searched. – nall Apr 1 '10 at 19:31
To clarify: that question is unrelated to this one. That question is about changing how application programs like Emacs and Vim treat words. iTerm's word separator preference only affects selecting text with iTerm. Still, the answer to this question is that the selection separator is not directly configurable in Terminal. However, it's worth noting that Terminal uses the system-wide preference System Preferences > Language & Text > Text > Word Break, which users can change, but there probably aren't any available preference values that would help in this case. – Chris Page Aug 29 '11 at 12:16
feedback

Shift + Command + double_click

From: http://discussions.apple.com/thread.jspa?threadID=2400559&start=15&tstart=0

link|improve this answer
Shift-Command-Double-Click is the anti-answer. It selects whole pathnames. This question is about how to restrict the selection to just part of a domain name or pathname. – Chris Page Aug 29 '11 at 12:11
@Chris The question asked how do I double click to select foo.bar.baz in the terminal. Shift-Command-Double-Click works for that use case. – user53251 Sep 8 '11 at 0:39
"…such that if I have the text foo.bar.baz and double click bar, only bar is selected." [emph. Mine] – Chris Page Sep 8 '11 at 5:30
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.