horeah / PyCmd

Improved interactive experience for Windows' cmd.exe
GNU Lesser General Public License v3.0
18 stars 4 forks source link

Support emacs-style keybindings in interactive selection windows #5

Closed horeah closed 9 months ago

horeah commented 1 year ago

In the selection window (e.g. when listing completions), accept Ctrl-P/N/F/B as an alternative to Up/Down/Right/Left and Ctrl-V/Alt-V as an alternative do PgDn/PgUp.

In addition: "entering" the interactive window after pressing Tab is now performed using the "Down" key; Ctrl-N should be accepted as an alternative.

Note: implementation-wise, I would go for a match-case statement. This might be a nice preview/proof-of-concept for using a match-case in the main key-dispatching loop in PyCmd.py (currently kind of messy)

horeah commented 1 year ago

Also: Ctrl-G as an alternative to Esc to (1) clear the search filter and (2) close the window

horeah commented 9 months ago

This is now covered in release 20230829.