29

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?

Chealion
  • 25,408
  • 8
  • 67
  • 75
nall
  • 747
  • 2
  • 6
  • 13

2 Answers2

35

Shift + Command + double_click

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

user53251
  • 461
  • 4
  • 4
  • 2
    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
  • 1
    @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 08 '11 at 00:39
  • 2
    "…such that if I have the text foo.bar.baz and double click bar, _only bar_ is selected." [emph. Mine] – Chris Page Sep 08 '11 at 05:30
  • 2
    I don't this answered the original question, but it's exactly what I was looking for... now if only i could make this the default double-click behavior... – olore Oct 27 '13 at 23:20
  • The only problem is now remaining using custom delimiters. And I think question is asked for that only. – Pushpendra May 23 '23 at 04:42
9

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.

JRobert
  • 6,744
  • 24
  • 28
  • 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