1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: add new option weechat.look.item_buffer_filter

This commit is contained in:
Sebastien Helleu
2011-08-26 19:27:28 +02:00
parent dcdf63931a
commit 8cc9b3ced6
18 changed files with 97 additions and 15 deletions
+1
View File
@@ -7,6 +7,7 @@ v0.3.6-dev, 2011-08-26
Version 0.3.6 (under dev!)
--------------------------
* core: add new option weechat.look.item_buffer_filter
* core: change default value of option weechat.network.gnutls_ca_file to
"/etc/ssl/certs/ca-certificates.crt"
* core: replace deprecated gnutls function
+5
View File
@@ -458,6 +458,11 @@
** Typ: integer
** Werte: 0 .. 65535 (Standardwert: `32`)
* *weechat.look.item_buffer_filter*
** Beschreibung: `string used to show that some lines are filtered in current buffer (bar item "buffer_filter"`
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette (Standardwert: `"*"`)
* *weechat.look.item_time_format*
** Beschreibung: `Format für die Zeitanzeige, "time", in der Bar-Item (siehe man strftime für Datum/Zeit Platzhalter)`
** Typ: Zeichenkette
+5
View File
@@ -458,6 +458,11 @@
** type: integer
** values: 0 .. 65535 (default value: `32`)
* *weechat.look.item_buffer_filter*
** description: `string used to show that some lines are filtered in current buffer (bar item "buffer_filter"`
** type: string
** values: any string (default value: `"*"`)
* *weechat.look.item_time_format*
** description: `time format for "time" bar item (see man strftime for date/time specifiers)`
** type: string
+5
View File
@@ -458,6 +458,11 @@
** type: entier
** valeurs: 0 .. 65535 (valeur par défaut: `32`)
* *weechat.look.item_buffer_filter*
** description: `chaîne utilisée pour montrer que des lignes sont filtrées dans le tampon courant (objet de barre "buffer_filter")`
** type: chaîne
** valeurs: toute chaîne (valeur par défaut: `"*"`)
* *weechat.look.item_time_format*
** description: `format de date/heure pour l'objet de barre \"time\" (voir man strftime pour le format de date/heure)`
** type: chaîne
+5
View File
@@ -458,6 +458,11 @@
** tipo: intero
** valori: 0 .. 65535 (valore predefinito: `32`)
* *weechat.look.item_buffer_filter*
** descrizione: `string used to show that some lines are filtered in current buffer (bar item "buffer_filter"`
** tipo: stringa
** valori: qualsiasi stringa (valore predefinito: `"*"`)
* *weechat.look.item_time_format*
** descrizione: `formato dell'ora per l'elemento barra "time" (consultare man strftime per gli specificatori data/ora)`
** tipo: stringa
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-07-05 15:37+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2385,6 +2385,11 @@ msgstr ""
"časový formát pro \"time\" položku panelu (viz. man strftime pro specifikaci "
"data/času)"
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+6 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-08-15 10:10+0100\n"
"Last-Translator: Nils Görs\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2582,6 +2582,11 @@ msgstr ""
"Format für die Zeitanzeige, \"time\", in der Bar-Item (siehe man strftime "
"für Datum/Zeit Platzhalter)"
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+6 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-07-05 15:37+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2418,6 +2418,11 @@ msgstr ""
"formato de hora para el elemento de barra \"time\" (ver el manual de "
"strftime para los especificadores de fecha/hora)"
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+9 -2
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"PO-Revision-Date: 2011-08-26 18:24+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-08-26 19:23+0200\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@@ -2512,6 +2512,13 @@ msgstr ""
"format de date/heure pour l'objet de barre \\\"time\\\" (voir man strftime "
"pour le format de date/heure)"
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
"chaîne utilisée pour montrer que des lignes sont filtrées dans le tampon "
"courant (objet de barre \"buffer_filter\")"
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-05-15 10:51+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2041,6 +2041,11 @@ msgid ""
"time format for \"time\" bar item (see man strftime for date/time specifiers)"
msgstr ""
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-08-16 17:48+0200\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2498,6 +2498,11 @@ msgstr ""
"formato dell'ora per l'elemento barra \"time\" (consultare man strftime per "
"gli specificatori data/ora)"
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+6 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-07-05 15:38+0200\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2414,6 +2414,11 @@ msgstr ""
"format czasu dla elementu paska \"time\" (zobacz man strftime dla "
"specyfikatorów daty/czasu)"
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-05-15 10:52+0200\n"
"Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2395,6 +2395,11 @@ msgid ""
"time format for \"time\" bar item (see man strftime for date/time specifiers)"
msgstr ""
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: 2011-05-15 10:52+0200\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2058,6 +2058,11 @@ msgid ""
"time format for \"time\" bar item (see man strftime for date/time specifiers)"
msgstr ""
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+6 -1
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-08-26 18:23+0200\n"
"POT-Creation-Date: 2011-08-26 19:26+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1792,6 +1792,11 @@ msgid ""
"time format for \"time\" bar item (see man strftime for date/time specifiers)"
msgstr ""
msgid ""
"string used to show that some lines are filtered in current buffer (bar item "
"\"buffer_filter\""
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number "
"with /buffer *N (where N is a buffer number), to easily switch to another "
+8 -1
View File
@@ -107,6 +107,7 @@ struct t_config_option *config_look_input_share;
struct t_config_option *config_look_input_share_overwrite;
struct t_config_option *config_look_input_undo_max;
struct t_config_option *config_look_item_time_format;
struct t_config_option *config_look_item_buffer_filter;
struct t_config_option *config_look_jump_current_to_previous_buffer;
struct t_config_option *config_look_jump_previous_buffer_when_closing;
struct t_config_option *config_look_mouse;
@@ -1783,7 +1784,13 @@ config_weechat_init_options ()
"item_time_format", "string",
N_("time format for \"time\" bar item (see man strftime for date/time "
"specifiers)"),
NULL, 0, 0, "%H:%M", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
NULL, 0, 0, "%H:%M", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL);
config_look_item_buffer_filter = config_file_new_option (
weechat_config_file, ptr_section,
"item_buffer_filter", "string",
N_("string used to show that some lines are filtered in current buffer "
"(bar item \"buffer_filter\""),
NULL, 0, 0, "*", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL);
config_look_jump_current_to_previous_buffer = config_file_new_option (
weechat_config_file, ptr_section,
"jump_current_to_previous_buffer", "boolean",
+1
View File
@@ -131,6 +131,7 @@ extern struct t_config_option *config_look_input_share;
extern struct t_config_option *config_look_input_share_overwrite;
extern struct t_config_option *config_look_input_undo_max;
extern struct t_config_option *config_look_item_time_format;
extern struct t_config_option *config_look_item_buffer_filter;
extern struct t_config_option *config_look_jump_current_to_previous_buffer;
extern struct t_config_option *config_look_jump_previous_buffer_when_closing;
extern struct t_config_option *config_look_mouse;
+4 -3
View File
@@ -932,7 +932,7 @@ char *
gui_bar_item_default_buffer_filter (void *data, struct t_gui_bar_item *item,
struct t_gui_window *window)
{
char buf[256];
char buf[512];
/* make C compiler happy */
(void) data;
@@ -945,8 +945,9 @@ gui_bar_item_default_buffer_filter (void *data, struct t_gui_bar_item *item,
return NULL;
snprintf (buf, sizeof (buf),
"%s*",
gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_status_filter))));
"%s%s",
gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_status_filter))),
CONFIG_STRING(config_look_item_buffer_filter));
return strdup (buf);
}