prompt-toolkit / prompt-toolkit/python-prompt-toolkit

Auto-suggestion partial accept in normal mode

Open
#1,598 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.