From bc54961e15e5331cd202aa661389d1e5c52cde2c Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 22 Aug 2024 13:16:52 +0100 Subject: [PATCH] wording --- docs/guide/command_palette.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guide/command_palette.md b/docs/guide/command_palette.md index b327ddeeec..f0f014dc7d 100644 --- a/docs/guide/command_palette.md +++ b/docs/guide/command_palette.md @@ -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`.