Keep suggestions after switching to navigation in vi mode

Open
#2,053 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start by tracing prompt_toolkit's vi-mode navigation and suggestion handling, since the issue names no specific files or tests. Determine where suggestions are cleared on entering navigation mode, then verify that they remain available and can be navigated and accepted in the same way as in fish's vi mode.

Written by the indexing model from the issue text.

Description

As you type a command in ipython or xonsh, the prompt_toolkit suggest a possible completion from history, but when you use vi mode and switch to navigation, that suggestion immediately disappears.

It would be nice to be able to navigate in the suggestion too, because after mapping ESC to jk your fingers never will need to leave the letter keys to reach for the arrows if you want to accept a suggestion, like it happens in vi mode of the fish shell.

I've searched how to keep suggestions in navigation mode in google, but it appears that it is not possible.

Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

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.

More from prompt-toolkit/python-prompt-toolkit

All issues in prompt-toolkit/python-prompt-toolkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.