Jump/delete across whole (non-whitespace) words with Ctrl+Left/Right/Delete/Backspace.
If you like the idea click ⭐ on the repo and tweet.
To install use pip:
xpip install xontrib-whole-word-jumping
# or: xpip install -U git+https://github.com/xonsh/xontrib-whole-word-jumping
xontrib load whole_word_jumping
Control+left/right
: Jump to previous/next whole wordControl+backspace
: Delete to beginning of whole wordControl+delete
: Delete to end of whole wordShift+delete
: Delete whole word
Alt+Left/Right/Delete/Backspace remain unmodified:
Alt+left/right
: Jump to previous/next tokenAlt+backspace
: Delete to beginning of tokenAlt+delete
: Delete to end of token
Some terminals cannot differentiate between Backspace and Control+Backspace.
In this case, users can set $XONSH_WHOLE_WORD_CTRL_BKSP = False
to skip
configuration of the Control+Backspace key binding.
This package was created with xontrib template.