Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xonsh/xontrib-whole-word-jumping
Jump/delete across whole (non-whitespace) words with Ctrl+Left/Right/Delete/Backspace.
https://github.com/xonsh/xontrib-whole-word-jumping
prompt-toolkit xonsh xontrib
Last synced: about 1 month ago
JSON representation
Jump/delete across whole (non-whitespace) words with Ctrl+Left/Right/Delete/Backspace.
- Host: GitHub
- URL: https://github.com/xonsh/xontrib-whole-word-jumping
- Owner: xonsh
- License: mit
- Created: 2023-02-15T13:53:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T17:56:40.000Z (about 2 months ago)
- Last Synced: 2024-10-22T08:42:37.641Z (about 2 months ago)
- Topics: prompt-toolkit, xonsh, xontrib
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xontribs - whole_word_jumping - Jumping across whole words (non-whitespace) with Ctrl+Left/Right. (Prompts / Prompt tweaks)
README
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:
```bash
xpip install xontrib-whole-word-jumping
# or: xpip install -U git+https://github.com/xonsh/xontrib-whole-word-jumping
```## Usage
```bash
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 wordAlt+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](https://github.com/xonsh/xontrib-template).