
    Cj                    B    S r SSKJr  SSKJrJrJrJr   " S S\5      rg)aA  

This module contains `SystemCommands`, a command palette command provider for Textual system commands.

This is a simple command provider that makes the most obvious application
actions available via the [command palette][textual.command.CommandPalette].

!!! note

    The App base class installs this automatically.

    )annotations)DiscoveryHitHitHitsProviderc                  ,    \ rS rSrSrSS jrSS jrSrg)	SystemCommandsProvider   zA [source][textual.command.Provider] of command palette commands that run app-wide tasks.

Used by default in [`App.COMMANDS`][textual.app.App.COMMANDS].
c                  #    [        U R                  R                  U R                  5      S S9nU H  u  p#pEU(       d  M  [	        UUUS97v   M     g7f)zmHandle a request for the discovery commands for this provider.

Yields:
    Commands that can be discovered.
c                    U S   $ )Nr    )commands    i/home/rurouni/.local/share/pipx/venvs/strix-agent/lib/python3.13/site-packages/textual/system_commands.py<lambda>1SystemCommandsProvider.discover.<locals>.<lambda>    s	    7ST:    )keyhelpN)sortedappget_system_commandsscreenr   )selfcommandsname	help_textcallbackdiscovers         r   r   SystemCommandsProvider.discover   sV      HH((5;U
 4</DXx""  4<s   <AAc                  #    U R                  U5      nU R                  R                  U R                  5       H<  tp4pVUR	                  U5      =nS:  d  M  [        UUR                  U5      UUS97v   M>     g7f)zHandle a request to search for system commands that match the query.

Args:
    query: The user input to be matched.

Yields:
    Command hits for use in the command palette.
r   r   N)matcherr   r   r   matchr   	highlight)r   queryr"   r   r   r   _r#   s           r   searchSystemCommandsProvider.search*   st      ,,u% .2XX-I-I$++-V)DX t,,1%%d+"	  .Ws   AA:#A:r   N)returnr   )r%   strr)   r   )__name__
__module____qualname____firstlineno____doc__r   r'   __static_attributes__r   r   r   r	   r	      s    
"r   r	   N)	r/   
__future__r   textual.commandr   r   r   r   r	   r   r   r   <module>r3      s!    # = =-X -r   