SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.46k stars 3.18k forks source link

LibLine: Missing GNU Shortcuts #25039

Open RolandMarchand opened 1 week ago

RolandMarchand commented 1 week ago

Some GNU Bash/Readline shortcuts are not implemented in LibLine as of the latest commit c136280891.

Missing shortcuts (in order of personal usage):

Note: I may have missed some, especially related to history, but these are the most commonly used and best documented ones.

Shell already implements many existing GNU Bash shortcuts, so I am proposing to extend the list.

I am not sure if the existing shortcuts are specifically implemented in LibLine, or in Shell, Terminal, or elsewhere. Since GNU Readline implements those shortcuts, I think LibLine should, too, if it was to have them.

Edit: this issue might be a good fit for the label "good first issue."

nico commented 1 week ago

Pretty sure we have at least most of these? #3027 added u, l, c for example.

RolandMarchand commented 1 week ago

Huh, that's curious. I confirm to have tested all the shortcuts listed above, and they are not implemented as of c136280891cecfdd935f470abfa1fef3a3eeee2d. I can provide more detail about my build if requested.

alimpfard commented 5 days ago

Here's a list of all the implemented keybinds:

Of the list mentioned by the OP, these are not implemented:

As for Alt+{u,l,c} not working, I just tested them (on lagom) and they're fine; might be a Terminal issue if you're testing from within Serenity.