-
Notifications
You must be signed in to change notification settings - Fork 321
Add support for capitalizing, upcasing, and downcasing words #2912
Copy link
Copy link
Closed
Labels
Description
Prerequisites
- Write a descriptive title.
Description of the new feature/enhancement
In GNU Readline, I can use Emacs-like keys to capitalize, upcase, or lowercase the word after the cursor position. I can even change the keybindings. In my .bashrc, for example, I have:
# bind keys for case conversion
bind '"\ei": capitalize-word' # default is alt-c
bind '"\eo": upcase-word' # default is alt-u
bind '"\eu": downcase-word' # default is alt-lClink for Windows CMD has this feature.
Proposed technical implementation details (optional)
I haven't looked into the PSReadline codebase yet. Strictly an user here. But I could look around out of curiosity if someone could point me to the code where stuff like alt-del or alt-f/b was implemented.
Reactions are currently unavailable