Conversation
- Moved completion classes to new completion.py module. - Removed all completion state variables from Cmd class and placed them in Completions class. - All completer functions now return a Completions object. - Moved completion exception handling to to pt_utils.py.
Removed extra newlines in CompletionErrors and formatted exceptions.
Added display_meta field to CompletionItem. Added Choices class which is returned by choices_providers.
Added CompletionResultsBase.to_strings().
|
🤖 Hi @kmvanbrunt, I've received your request, and I'm working on it now! You can track my progress in the logs for more details. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1575 +/- ##
==========================================
- Coverage 99.38% 99.38% -0.01%
==========================================
Files 21 22 +1
Lines 4910 4902 -8
==========================================
- Hits 4880 4872 -8
Misses 30 30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
🤖 I'm sorry @kmvanbrunt, but I was unable to process your request. Please see the logs for more details. |
|
|
||
| return base_set_parser | ||
|
|
||
| def complete_set_value( |
There was a problem hiding this comment.
I'm not sure how or where the right place to do it is, but I think we should fix how the set completion works in prompt-toolkit. The printed table above looks great.
But if I use the arrow keys to select one of the settables, it shows me the current value. Instead I'd like to see some combination of the current value and help text.
Overhauled the completion API to use encapsulation and better reflect how
prompt-toolkitworks.