Skip to content

Add support for capitalizing, upcasing, and downcasing words #2912

@3N4N

Description

@3N4N

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-l

Clink 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions