gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.39k stars 293 forks source link

word-wise select characters: /- vs -/ #1917

Open gjvc opened 4 years ago

gjvc commented 4 years ago

version Tilix 1.9.1

steps to reproduce Given /- as word-wise select characters setting and "/home/gjvc/projects/PYTHON/python-example-project" as the example text, double-clicking on "project" selects only "project" which is not what I want.

If I change /- to -/ then double-clicking on "project" selects only "project" selects the whole string "/home/gjvc/projects/PYTHON/python-template-project" which is what I expect and what I consider to be correct.

mrakitin commented 4 years ago

I have the same issue. Looks like it's working as expected according to the documentation (https://developer.gnome.org/vte/0.40/VteTerminal.html#vte-terminal-set-word-char-exceptions):

The characters in exceptions must be non-alphanumeric, each character must occur only once, and if exceptions contains the character U+002D HYPHEN-MINUS, it must be at the start of the string.

However, it would be much more user-friendly if the hyphen/minus position would not matter (e.g., it can always be put in front of the list internally if it's found in the string).