Skip to content

System commands source

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.

SystemCommands class

Bases: Provider

A source of command palette commands that run app-wide tasks.

Used by default in App.COMMANDS.

discover async

def discover(self):

Handle a request for the discovery commands for this provider.

Yields:

Type Description
Hits

Commands that can be discovered.

search async

def search(self, query):

Handle a request to search for system commands that match the query.

Parameters
Parameter Default Description
query
str
required

The user input to be matched.

Yields:

Type Description
Hits

Command hits for use in the command palette.