prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Can I make bottom toolbars where words wrap to multiple lines?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
The bottom toolbar was updated to break up multi-line strings across multiple lines of the bottom toolbar (https://github.com/prompt-toolkit/python-prompt-toolkit/issues/587). Is it possible for me to have a FormattedText object (like HTML) that has a really long piece of text that wraps across multiple lines? Currently a really long string just gets chopped off.
If it's not possible for it to automatically wrap, is there a way for me to dynamically render the text and insert line breaks in the bottom toolbar based on the character width of the terminal?
Thanks for your help! This library is incredible
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 reviewing the bottom-toolbar wrapping behavior described in issue #587 and how FormattedText objects are rendered. Done means establishing whether long FormattedText content can wrap across toolbar lines, or documenting the available way to insert width-aware line breaks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100