Selecting text with mouse does not stop at '/'
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.1.4
- OS version: macOS 10.12.6
- Attach ~/Library/Preferences/com.googlecode.com.googlecode.iterm2.plistiterm2.plist here (drag-drop from finder into this window)
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
Detailed steps to reproduce the problem:
- Open a terminal
- Run: echo hi/bye
- Double click the "i" in "hi"
What happened: The entire "hi/bye" gets selected (and copied in many cases).
What should have happened: In Terminal.app and all other apps I've tested (such as in this form in Chrome), they do NOT select the /. I do see how this can be helpful for URLs or paths. A simple solution would be to allow clicking on the 'slash' to grab the entire string (according to the current pattern grabbing method). Ironically it does stop at ':' so https://test.com only grabs "//test.com", so may be good to allow grabbing ":" when a "/" or ":" is double clicked on.
There could be smarter detection as well, such as autodetecting URLs, but this is less important and a simple solution would be great, or is there a way I can change that matching pattern myself?
Thanks!