# HG changeset patch # User Mikael Berthe # Date 1122398310 -3600 # Node ID 00809e3e327eb14ac52b7171dbd3e9ab2eda8908 # Parent d37d8d66111595d288c935a41ed9addcfaf68abb Add "/roster up" and "/roster down" diff -r d37d8d661115 -r 00809e3e327e mcabber/doc/mcabber.1 --- a/mcabber/doc/mcabber.1 Mon Jul 25 22:02:35 2005 +0100 +++ b/mcabber/doc/mcabber.1 Tue Jul 26 18:18:30 2005 +0100 @@ -181,6 +181,8 @@ \fBbottom\fR jump to the bottom of the roster \fBtop\fR jump to the top of the roster + \fBup\fR move up in the roster + \fBdown\fR move down in the roster \fBhide_offline\fR hide offline buddies \fBshow_offline\fR show offline buddies \fBtoggle_offline\fR toggle display of offline buddies diff -r d37d8d661115 -r 00809e3e327e mcabber/doc/mcabber.1.html --- a/mcabber/doc/mcabber.1.html Mon Jul 25 22:02:35 2005 +0100 +++ b/mcabber/doc/mcabber.1.html Tue Jul 26 18:18:30 2005 +0100 @@ -437,6 +437,22 @@ +up + + +move up in the roster + + + + +down + + +move down in the roster + + + + hide_offline @@ -533,7 +549,7 @@ diff -r d37d8d661115 -r 00809e3e327e mcabber/doc/mcabber.1.txt --- a/mcabber/doc/mcabber.1.txt Mon Jul 25 22:02:35 2005 +0100 +++ b/mcabber/doc/mcabber.1.txt Tue Jul 26 18:18:30 2005 +0100 @@ -174,6 +174,8 @@ 'bottom';; jump to the bottom of the roster 'top';; jump to the top of the roster + 'up';; move up in the roster + 'down';; move down in the roster 'hide_offline';; hide offline buddies 'show_offline';; show offline buddies 'toggle_offline';; toggle display of offline buddies diff -r d37d8d661115 -r 00809e3e327e mcabber/src/commands.c --- a/mcabber/src/commands.c Mon Jul 25 22:02:35 2005 +0100 +++ b/mcabber/src/commands.c Tue Jul 26 18:18:30 2005 +0100 @@ -115,6 +115,8 @@ // Roster category compl_add_category_word(COMPL_ROSTER, "bottom"); compl_add_category_word(COMPL_ROSTER, "top"); + compl_add_category_word(COMPL_ROSTER, "up"); + compl_add_category_word(COMPL_ROSTER, "down"); compl_add_category_word(COMPL_ROSTER, "hide_offline"); compl_add_category_word(COMPL_ROSTER, "show_offline"); compl_add_category_word(COMPL_ROSTER, "toggle_offline"); @@ -366,6 +368,10 @@ } scr_RosterSearch(string); update_roster = TRUE; + } else if (!strcasecmp(arg, "up")) { + scr_RosterUp(); + } else if (!strcasecmp(arg, "down")) { + scr_RosterDown(); } else scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!"); } diff -r d37d8d661115 -r 00809e3e327e mcabber/src/screen.h --- a/mcabber/src/screen.h Mon Jul 25 22:02:35 2005 +0100 +++ b/mcabber/src/screen.h Tue Jul 26 18:18:30 2005 +0100 @@ -49,6 +49,8 @@ // For commands... void scr_RosterTop(void); void scr_RosterBottom(void); +void scr_RosterUp(void); +void scr_RosterDown(void); void scr_RosterSearch(char *); void scr_BufferTopBottom(int topbottom); void scr_BufferClear(void);