prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Treat / in line as just another character
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
I need to autocomplete a bunch of strings in a hierarchy separated with / like "/foo/bar", "/food/boo" etc. if I type "/fo I would expect to see the completions for /foo and /food but I get nothing. Note that typing the first / shows all the completions starting with /.
Looks like / is a vi search command but I should in emacs mode both default and I set it explicitly. I even removed the handler in vi.py to see if that would help but no. It also seems to treat . and - similarly so I am wondering if I am missing an option somewhere?
If not here's a request to make this a feature.
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 by examining vi.py and the completion behavior in emacs mode, focusing on how /, ., and - are treated while typing prefixes such as /fo. Confirm the desired behavior with hierarchical strings like /foo/bar and /food/boo; done means /fo offers /foo and /food without changing vi search behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100