Skip to main content

Jump/delete across whole (non-whitespace) words with Ctrl+Left/Right/Delete/Backspace.

Project description

Jump/delete across whole (non-whitespace) words with Ctrl+Left/Right/Delete/Backspace.

If you like the idea click ⭐ on the repo and tweet.

Installation

To install use pip:

xpip install xontrib-whole-word-jumping
# or: xpip install -U git+https://github.com/xonsh/xontrib-whole-word-jumping

Usage

xontrib load whole_word_jumping
  • Control+left/right: Jump to previous/next whole word
  • Control+backspace: Delete to beginning of whole word
  • Control+delete: Delete to end of whole word
  • Shift+delete: Delete whole word

Alt+Left/Right/Delete/Backspace remain unmodified:

  • Alt+left/right: Jump to previous/next token
  • Alt+backspace: Delete to beginning of token
  • Alt+delete: Delete to end of token

Known issues

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.

Credits

This package was created with xontrib template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xontrib-whole-word-jumping-0.0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page