prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Allow using different separator for nested completion
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Thanks for creating this great package!
I am currently working on a command definition tree and on a feature which allows picking a path through the tree.
I would like to have auto-completion for this, but the resultant path should be path-like, with slashes as separators.
The nested completer currently only allows space as the separator. It would be nice if it would be possible to change the separator. I think strings like ":", "::" and "/" might be other commonly used separators used together with the nested completer.
I can prepare a PR for this.
Kind Regards
Robin
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 locating the nested completer and reading how it currently handles the space separator. The work is done when callers can configure separators such as ":", "::", or "/" for path-like completion, with behavior covered by the relevant nested-completer tests.
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