prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Allow rebinding Cmd key on a Mac
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
As far as I understand, this is a complete list of all supported keybinds https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/src/prompt_toolkit/keys.py. It doesn't have Cmd key even though some terminals support passing it to the shell (e.g., via some https://sw.kovidgoyal.net/kitty/keyboard-protocol, not sure whether there are more comprehensive alternatives)
Am I correct that PTK currently doesn't support Cmd key and to enable it it would also have to explicitly add support for some kind of extra protocol? Or is there a simple way to rebind everything already today :)?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/prompt_toolkit/keys.py and review the linked Kitty keyboard protocol documentation. Determine whether Cmd events can be represented by the current key bindings or require protocol support; done would be a documented, decided approach to supporting or rebinding Cmd.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100