/[weechat]/weechat/src/common/command.c
ViewVC logotype

Diff of /weechat/src/common/command.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.71 by flashcode, Sat Oct 15 12:34:21 2005 UTC revision 1.72 by flashcode, Sat Oct 22 14:04:27 2005 UTC
# Line 136  t_weechat_command weechat_commands[] = Line 136  t_weechat_command weechat_commands[] =
136         "Without argument, /unignore command lists all defined ignore."),         "Without argument, /unignore command lists all defined ignore."),
137      0, 4, weechat_cmd_unignore, NULL },      0, 4, weechat_cmd_unignore, NULL },
138    { "window", N_("manage windows"),    { "window", N_("manage windows"),
139      N_("[list | splith | splitv | [merge [down | up | left | right | all]]]"),      N_("[list | -1 | +1 | b# | splith | splitv | [merge [down | up | left | right | all]]]"),
140      N_("list: list opened windows (no parameter implies this list)\n"      N_("list: list opened windows (no parameter implies this list)\n"
141           "-1: jump to previous window\n"
142           "+1: jump to next window\n"
143           "b#: jump to next window displaying buffer number #\n"
144         "splith: split current window horizontally\n"         "splith: split current window horizontally\n"
145         "splitv: split current window vertically\n"         "splitv: split current window vertically\n"
146         "merge: merge window with another"),         "merge: merge window with another"),
# Line 2511  weechat_cmd_window (int argc, char **arg Line 2514  weechat_cmd_window (int argc, char **arg
2514  {  {
2515      t_gui_window *ptr_win;      t_gui_window *ptr_win;
2516      int i;      int i;
2517        char *error;
2518        long number;
2519            
2520      if ((argc == 0) || ((argc == 1) && (ascii_strcasecmp (argv[0], "list") == 0)))      if ((argc == 0) || ((argc == 1) && (ascii_strcasecmp (argv[0], "list") == 0)))
2521      {      {
# Line 2577  weechat_cmd_window (int argc, char **arg Line 2582  weechat_cmd_window (int argc, char **arg
2582              else              else
2583                  gui_window_merge_auto (gui_current_window);                  gui_window_merge_auto (gui_current_window);
2584          }          }
2585            else if (ascii_strncasecmp (argv[0], "b", 1) == 0)
2586            {
2587                /* jump to window by buffer number */
2588                error = NULL;
2589                number = strtol (argv[0] + 1, &error, 10);
2590                if ((error) && (error[0] == '\0'))
2591                    gui_switch_to_window_by_buffer (gui_current_window, number);
2592            }
2593          else if (ascii_strcasecmp (argv[0], "-1") == 0)          else if (ascii_strcasecmp (argv[0], "-1") == 0)
2594              gui_switch_to_previous_window (gui_current_window);              gui_switch_to_previous_window (gui_current_window);
2595          else if (ascii_strcasecmp (argv[0], "+1") == 0)          else if (ascii_strcasecmp (argv[0], "+1") == 0)

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26