diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/fe-text/statusbar-items.c | 13 |
2 files changed, 11 insertions, 4 deletions
@@ -9,6 +9,8 @@ v0.8.13 + /ping without arguments does not send anymore a ctcp ping to a channel (bug #542). + Track IRC operator status of nicks a bit better. + + new 'actlist_names' option to add active items names in 'act' + statusbar item. + new 'word_completion_backward' command to scroll backwards in the completion list. + add 'list' option to /bind to print all the available commands. diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 201d17c7..044c2fa0 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -77,6 +77,7 @@ static char *get_activity_list(MAIN_WINDOW_REC *window, int normal, int hilight) GList *tmp; char *ret, *name, *value; int is_det; + int add_name = settings_get_bool("actlist_names"); str = g_string_new(NULL); format = g_string_new(NULL); @@ -102,14 +103,14 @@ static char *get_activity_list(MAIN_WINDOW_REC *window, int normal, int hilight) switch (window->data_level) { case DATA_LEVEL_NONE: case DATA_LEVEL_TEXT: - name = "{sb_act_text %d}"; + name = "{sb_act_text %d"; break; case DATA_LEVEL_MSG: - name = "{sb_act_msg %d}"; + name = "{sb_act_msg %d"; break; default: if (window->hilight_color == NULL) - name = "{sb_act_hilight %d}"; + name = "{sb_act_hilight %d"; else name = NULL; break; @@ -118,9 +119,12 @@ static char *get_activity_list(MAIN_WINDOW_REC *window, int normal, int hilight) if (name != NULL) g_string_printf(format, name, window->refnum); else - g_string_printf(format, "{sb_act_hilight_color %s %d}", + g_string_printf(format, "{sb_act_hilight_color %s %d", window->hilight_color, window->refnum); + if (add_name && window->active != NULL) + g_string_append_printf(format, ":%s", window->active->visible_name); + g_string_append_c(format, '}'); value = theme_format_expand(theme, format->str); g_string_append(str, value); @@ -430,6 +434,7 @@ void statusbar_items_init(void) { settings_add_time("misc", "lag_min_show", "1sec"); settings_add_str("lookandfeel", "actlist_sort", "refnum"); + settings_add_bool("lookandfeel", "actlist_names", FALSE); statusbar_item_register("window", NULL, item_window_active); statusbar_item_register("window_empty", NULL, item_window_empty); |