Menu

#503 Word selection for IP addresses

closed
nobody
5
2006-10-28
2006-09-29
ScottM
No

Hi,

It would be great if iTerm could spot 1.2.3.4 as an IP address when
doing word selection and select the entire IP address, rather than just
one of the octets.

I realise that recent versions let you add your own word-selection
boundary, however, that yields different (and unwanted) behaviour from
Terminal.app.

For example, if you add '.' to the part-of-word option in Preferences,
then it will also select the full-stop when clicking on words in
sentences. If I were to double click on the word "sentences" then in
Terminal.app it would select just that word, but in iTerm it will also
select the full-stop at the end.

Terminal.app somehow sees IP addresses as whole-words when doing
word selection on double-click, not sure what the trick is to doing that,
but it would be great if iTerm could emulate that behaviour.

Discussion

  • Vincent Lefevre

    Vincent Lefevre - 2006-10-01

    Logged In: YES
    user_id=681811

    I don't think iTerm should recognize specific words, such as
    IP addresses, otherwise every one would want a similar
    feature (e.g. recognize various forms of URLs and so on).
    However, instead of (or in addition to) word boundaries,
    word regular expressions could be fine and would fit the
    needs (depending how it is implemented), and would even
    include xterm's nice character class feature (which iTerm
    doesn't support). But the specifications must be discussed
    first, in particular in the cases where there may be several
    matches.

     
  • fabian

    fabian - 2006-10-28

    Logged In: YES
    user_id=657158

    Do a command-click most of time does the trick, unless this ip address is embedded within some other text without
    obvious separators.

     
  • fabian

    fabian - 2006-10-28
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.