Linux Firefox punctuation boundaries in text input editing
There is one behaviour on Windows’ which I much prefer over Linux:
You can use the key Ctrl+<Action> to navigate between word boundaries, for example Ctrl+Backspace to delete the last word. This/is/especially/useful/when/editing/the/URL.html because it provides an easy means to delete back to the last /.
Unfortunately, on Linux, the only accepted boundary seems to be whitespace characters, so this is not very practical.
For my command line shell (zsh), I have changed this default behaviour with the command
WORDCHARS=${WORDCHARS//[&=\/;\!#%\{]}
This means that the characters &=/;!#%{
will also be recognised as valid word boundaries.
Unfortunately, Firefox does not allow such a fine grained control. Fortunately, you can at least bring the Windows Firefox behaviour to Linux. Here’s how:
- Go to about:config
- Search for
layout.word_select.stop_at_punctuation
- If it doesn’t exist, right-click and choose New > Boolean
- Set
layout.word_select.stop_at_punctuation
totrue
Enjoy.