mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
add (hide)level flip command
This commit is contained in:
parent
684094aa85
commit
261a7ce76e
@ -42,6 +42,7 @@
|
||||
LEFT: %|Go to the previous window numerically that is part of the current sticky group (or not part of any sticky group).
|
||||
RIGHT: %|Go to the next window numerically that is part of the current sticky group (or not part of any sticky group).
|
||||
STICK: %|Make the currently active window sticky, or stick the window specified by number to the currently visible split window. Or turn off stickyness of the currently active window or the window specified by number.
|
||||
HIDELEVEL: %|Changes the levels of text lines that should be hidden from view, or query the current hidden level.
|
||||
MOVE LEFT: %|Move the window to the numerically previous location inside the current sticky group.
|
||||
MOVE RIGHT: %|Move the window to the numerically next location inside the current sticky group.
|
||||
MOVE UP: %|Move the current window to the sticky group of the previous split window. If no sticky group remains, the split window collapses.
|
||||
@ -52,6 +53,8 @@
|
||||
|
||||
%|Add the required arguments for the given command. Without arguments, the details (size, immortality, levels, server, name and sticky group) of the currently active window are displayed. If used with a number as argument, same as WINDOW REFNUM.
|
||||
|
||||
%|LEVEL and HIDELEVEL modify the currently set level. Without arguments, the current level is displayed. Levels listed starting with `+' are added to the current levels. Levels listed starting with `-' are removed from the current levels. To clear the levels, start the new level setting with `NONE'. Levels listed starting with `^' are either removed or added from the current setting, depending on whether they were previously set or not (since Irssi 1.5). Levels listed as is are also added to the current levels. Afterwards, the new level setting is displayed.
|
||||
|
||||
%9Description:%9
|
||||
|
||||
Manipulates the window layout and positioning attributes.
|
||||
@ -68,6 +71,7 @@
|
||||
/WINDOW LOG OFF
|
||||
/WINDOW LOG ON ~/logs/debug.log
|
||||
/WINDOW LEVEL -ALL +NOTICES
|
||||
/WINDOW HIDELEVEL ^JOINS ^PARTS ^QUITS
|
||||
/WINDOW LOGFILE ~/logs/notices.log
|
||||
|
||||
%9See also:%9 JOIN, LEVELS, LOG, QUERY
|
||||
|
@ -184,13 +184,15 @@ int combine_level(int dest, const char *src)
|
||||
|
||||
list = g_strsplit(src, " ", -1);
|
||||
for (item = list; *item != NULL; item++) {
|
||||
itemname = *item + (**item == '+' || **item == '-' ? 1 : 0);
|
||||
itemname = *item + (**item == '+' || **item == '-' || **item == '^' ? 1 : 0);
|
||||
itemlevel = level_get(itemname);
|
||||
|
||||
if (g_strcmp0(itemname, "NONE") == 0)
|
||||
dest = 0;
|
||||
if (g_ascii_strcasecmp(itemname, "NONE") == 0)
|
||||
dest = 0;
|
||||
else if (**item == '-')
|
||||
dest &= ~(itemlevel);
|
||||
else if (**item == '^')
|
||||
dest ^= itemlevel;
|
||||
else
|
||||
dest |= itemlevel;
|
||||
}
|
||||
|
@ -400,7 +400,7 @@ static void cmd_window_previous(void)
|
||||
window_set_active(window_find_refnum(num));
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW LEVEL [<level>] */
|
||||
/* SYNTAX: WINDOW LEVEL [<levels>] */
|
||||
static void cmd_window_level(const char *data)
|
||||
{
|
||||
char *level;
|
||||
|
@ -93,7 +93,7 @@ static void cmd_window_scroll(const char *data)
|
||||
gui->scroll : settings_get_bool("scroll"));
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW HIDELEVEL [<level>] */
|
||||
/* SYNTAX: WINDOW HIDELEVEL [<levels>] */
|
||||
static void cmd_window_hidelevel(const char *data)
|
||||
{
|
||||
GUI_WINDOW_REC *gui;
|
||||
|
Loading…
Reference in New Issue
Block a user