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

Typeahead Issues in IPython

Open
#1,137 7 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

Hi,

We'd like to report a few issues with typeahead and IPython. Feel free to point this to the right project itself (prompt-toolkit? IPython?).

The period after the tab causes the tab to be ignored:

time.sleep(8)<ENTER>IPython.cor<TAB>.

The parenthesis after the tab does something weird, autocompleting empty string:

time.sleep(8)<ENTER>np.arang<TAB>(

The ENTER after the tab causes the tab to be ignored:

time.sleep(8)<ENTER>IPython.cor<TAB><ENTER>.

Everything after the xx line is ignored:

time.sleep(8)<ENTER>xx<ENTER>yy<ENTER>.  

I can make gifs of the others, but I thought this showed it clearly:
typeahead

cc @Carreau

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

Reproduce the four typeahead sequences described in the issue, including the period, parenthesis, ENTER, and post-line cases, using prompt-toolkit and IPython. First determine whether the behavior belongs to prompt-toolkit or IPython; done means these inputs are no longer ignored or replaced unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.