From 94212cd01ca87e26a06af4dfbc7b48087c1ef79c Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 25 May 2016 00:21:27 +0100 Subject: [PATCH] Update window navigation help --- src/command/cmd_defs.c | 21 ++++++++++++--------- src/ui/console.c | 13 ++++++++----- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 415dc7fc..a979dbd6 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -915,24 +915,27 @@ static struct cmd_t command_defs[] = "/win ", "/win ", "/win ", - "/win xmlconsole") + "/win xmlconsole", + "/win ") CMD_DESC( "Move to the specified window.") CMD_ARGS( - { "console", "Go to the Console window." }, - { "", "Go to specified window number." }, - { "", "Go to chat window with contact by JID if open." }, - { "", "Go to chat window with contact by nickname if open." }, - { "", "Go to chat room window with roomjid if open." }, - { "", "Go to private chat roomoccupantjid if open." }, - { "xmlconsole", "Go to the XML Console window if open." }) + { "console", "Focus the Console window." }, + { "", "Focus specified window number." }, + { "", "Focus chat window with contact by JID if open." }, + { "", "Focus chat window with contact by nickname if open." }, + { "", "Focus chat room window with roomjid if open." }, + { "", "Focus private chat roomoccupantjid if open." }, + { "xmlconsole", "Focus the XML Console window if open." }, + { "", "Focus the plugin window."}) CMD_EXAMPLES( "/win console", "/win 4", "/win friend@chat.org", "/win Eddie", "/win bigroom@conference.chat.org", - "/win bigroom@conference.chat.org/bruce") + "/win bigroom@conference.chat.org/bruce", + "/win wikipedia") }, { "/wins", diff --git a/src/ui/console.c b/src/ui/console.c index ebbddd70..207db949 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2058,15 +2058,18 @@ cons_help(void) void cons_navigation_help(void) { - int pad = strlen("Alt-PAGEUP, Alt-PAGEDOWN") + 3; ProfWin *console = wins_get_console(); cons_show(""); win_print(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "Navigation"); - cons_show_padded(pad, "Alt-1..Alt-0, F1..F10 : Choose window."); - cons_show_padded(pad, "Alt-LEFT, Alt-RIGHT : Previous/next chat window"); - cons_show_padded(pad, "PAGEUP, PAGEDOWN : Page the main window."); - cons_show_padded(pad, "Alt-PAGEUP, Alt-PAGEDOWN : Page occupants/roster panel."); + cons_show("Alt-1..Alt-0, F1..F10 : Choose window."); + cons_show("Alt-LEFT, Alt-RIGHT : Previous/next chat window."); + cons_show("PAGEUP, PAGEDOWN : Page the main window."); + cons_show("Alt-PAGEUP, Alt-PAGEDOWN : Page occupants/roster panel."); cons_show(""); + cons_show("/win : Focus window n, where n is the window number."); + cons_show("/win : Focus window with name, where name is the recipient, room or window title."); + cons_show(""); + cons_show("See '/help win' for more information."); cons_alert(); }