Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 22, 2024
1 parent 7a9ab93 commit bc54961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/guide/command_palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Textual apps have a number of *system* commands enabled by default.
These are declared in the [`App.get_system_commands`][textual.app.App.get_system_commands] method.
You can implement this method in your App class to add more commands.

To declare a command, define a `get_system_commands` method, which will receive the screen that was active when the user summoned the command palette.
To declare a command, define a `get_system_commands` method on your App.
Textual will call this with the screen that was active when the user summoned the command palette.
You can add a command by yielding a tuple of `(TITLE, HELP TEXT, CALLABLE)`.
The `TITLE` and `HELP TEXT` values are shown in the command palette.
If the user selects that command, then Textual will invoke `CALLABLE`.
Expand Down

0 comments on commit bc54961

Please sign in to comment.