Return list of Settable names, values, and descriptions as Choices.
(self)
| 2722 | return Choices(items=items) |
| 2723 | |
| 2724 | def _get_settable_choices(self) -> Choices: |
| 2725 | """Return list of Settable names, values, and descriptions as Choices.""" |
| 2726 | items: list[CompletionItem] = [] |
| 2727 | |
| 2728 | for name, settable in self.settables.items(): |
| 2729 | value_str = str(settable.value) |
| 2730 | table_data = [ |
| 2731 | value_str, |
| 2732 | settable.description, |
| 2733 | ] |
| 2734 | display_meta = f"[Current: {su.stylize(value_str, Style(bold=True))}] {settable.description}" |
| 2735 | items.append(CompletionItem(name, display_meta=display_meta, table_data=table_data)) |
| 2736 | |
| 2737 | return Choices(items=items) |
| 2738 | |
| 2739 | def _get_commands_aliases_and_macros_choices(self) -> Choices: |
| 2740 | """Return a list of visible commands, aliases, and macros as Choices.""" |