Private
Public Access
Docstrings: SSDL + ASCII Layout Map for Personas, Providers, and Command Palette
This commit is contained in:
@@ -123,6 +123,20 @@ def _execute(app: Any, command: Command) -> None:
|
||||
|
||||
|
||||
def render_palette_modal(app: Any, commands: List[Command]) -> None:
|
||||
"""Renders the interactive Command Palette modal. Exposes a text input query bar
|
||||
and lists matching commands with fuzzy matching, supporting keyboard navigation (Up/Down/Enter/Esc).
|
||||
|
||||
SSDL: `[I:query_input] -> [B:results_list] => [B:execute_command]`
|
||||
|
||||
ASCII Layout Map:
|
||||
+==================== Command Palette ===================+
|
||||
| |query_text| |
|
||||
| +-----------------------------------------------------+ |
|
||||
| | > [category-a] Command Title A (selected) | |
|
||||
| | [category-b] Command Title B | |
|
||||
| +-----------------------------------------------------+ |
|
||||
+========================================================+
|
||||
"""
|
||||
if not getattr(app, "show_command_palette", False):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user