ænd*_*rük 20 gnome-terminal unicode
当我在 GNOME 终端中双击选择文本时,选择在空格处停止,但在连字符上继续:


我的一些文件名包含不常见的字符,例如沉重的泪珠状星号,双击无法选择:

有没有办法让双击选择继续这些字符?
A B*_*A B 20
[添加一个答案,因为接受的答案不再有效。]
脚本
我把它放在一个脚本中来设置单词分隔符:
https://github.com/ab/ubuntu-wart-removal/blob/master/gnome-terminal-word-separators.sh
背景
GNOME 终端在这个问题上多次失败。
此配置功能已在 gnome-terminal 3.14 中删除(包含在 Ubuntu 15.04 Vivid 中)
然后在 gnome-terminal 3.16(包含在 Ubuntu 15.10 Wily 中),该选项在幕后重新引入,但没有 UI。此外,冒号:已更改为作为单词分隔符处理。
使用 dconf 进行编辑
根据这些说明,您可以使用 dconf 配置该集:https ://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1401207/comments/8
我喜欢-#%&+,./:=?@_~用作一组非单词分隔符。
请注意,冒号的使用是 /crazy/。是的,里面有 :/: 。
1) 编辑 -> 个人资料首选项 -> 个人资料上的常规选项卡有其个人资料 ID,例如 b1dcc9dd-5262-4d8d-a863-c897e6d979b9
2)检查你的语法是否正确:
$
dconf list /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ foreground-color visible-name palette use-system-font ...如果它什么都不返回,那你就错了;再试一次。
3)
dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/word-char-exceptions '@ms "-#%&+,./:=?@_~"'具体来说,它有“:”,这使它像我期望的那样选择 URL。(http://example.com不选择“//example.com”)。
mgu*_*nes 11
在“Edit > Profile Preferences > General”中,将字符添加到“Select-by-word characters”框中。