Double clicking on a word in gnome terminal selects the whole word. Unfortunately, this selection doesn't include colons such that URLs aren't completely selected, e.g. with
http://foo.example.org/
only
//foo.example.org/
is selected.
How do I configure this selection behavior such that complete URLs are selected?
See also:
- How to configure the double click behavior in an X terminal? - the described resources aren't interpreted by Gnome Terminal
- gnome classic terminal mouse double click selection - the Gnome Shell Terminal profile preference dialog doesn't have this option, anymore
echo $pid
is empty), try:pid=$(dconf list /org/gnome/terminal/legacy/profiles:/ | tr -d ":/")
– rumpel Jan 19 '18 at 12:43dconf read ...
still works for me on Fedora 26. Your list command returns all profile ids and other entries in that directory. Thus, you'll likely end up with a malformed write command if you use that command substitution. – maxschlepzig Jan 19 '18 at 21:17dconf
only works if you have more than one profile configured and/or have changed the default profile setting. Otherwise, the command returns nothing. Thegsettings
command is more high-level and returns the default value for the default profile if it isn't explicitly set (e.g. when you only have the one default profile). – maxschlepzig Mar 18 '18 at 19:20