prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Auto-suggestion partial accept in normal mode
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
In fish, when autosuggesting, c-right accepts the next token of the autosuggestion I see that currently, this is available with escape f in emacs mode, but not at all in normal mode. Can I make a PR to add a c-right binding for that?
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 in src/prompt_toolkit/key_binding/bindings/auto_suggest.py at the existing escape-f binding for accepting the next autosuggestion token. Compare how normal-mode bindings are defined and verify that c-right performs the same partial acceptance in normal mode. Done means the binding is available in normal mode without changing the existing emacs behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100