31

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?

2 Answers 2

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.

1
  • 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, 2011 at 12:16
37

Shift + Command + double_click

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

5
  • 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, 2011 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 8, 2011 at 0: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 8, 2011 at 5:30
  • 3
    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, 2013 at 23:20
  • 1
    The only problem is now remaining using custom delimiters. And I think question is asked for that only.
    – Pushpendra
    May 23, 2023 at 4:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .