1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 15:53:12 +02:00

Add new option weechat.look.jump_current_to_previous_buffer

This commit is contained in:
Sebastien Helleu
2009-04-21 17:48:44 +02:00
parent 7bed0ec485
commit 890b2ed23a
13 changed files with 95 additions and 10 deletions
+10
View File
@@ -826,6 +826,16 @@
</listitem>
</itemizedlist>
<command>weechat.look.jump_current_to_previous_buffer</command>: jump to previous buffer displayed when jumping to current buffer number (to easyly switch to another buffer, then come back to current buffer)
<itemizedlist>
<listitem>
<para>type: boolean</para>
</listitem>
<listitem>
<para>values: on, off (default value: on)</para>
</listitem>
</itemizedlist>
<command>weechat.look.nickmode</command>: Nickmode (@%+) vorm Nickname anzeigen
<itemizedlist>
<listitem>
+10
View File
@@ -826,6 +826,16 @@
</listitem>
</itemizedlist>
<command>weechat.look.jump_current_to_previous_buffer</command>: jump to previous buffer displayed when jumping to current buffer number (to easyly switch to another buffer, then come back to current buffer)
<itemizedlist>
<listitem>
<para>type: boolean</para>
</listitem>
<listitem>
<para>values: on, off (default value: on)</para>
</listitem>
</itemizedlist>
<command>weechat.look.nickmode</command>: display nick mode ((half)op/voice) before each nick
<itemizedlist>
<listitem>
+10
View File
@@ -826,6 +826,16 @@
</listitem>
</itemizedlist>
<command>weechat.look.jump_current_to_previous_buffer</command>: sauter au tampon affiché précédemment lors du saut vers le numéro de tampon courant (pour facilement basculer à un autre tampon, puis revenir au tampon courant)
<itemizedlist>
<listitem>
<para>type: booléen</para>
</listitem>
<listitem>
<para>valeurs: on, off (valeur par défaut: on)</para>
</listitem>
</itemizedlist>
<command>weechat.look.nickmode</command>: afficher le mode du pseudo ((half)op/voice) devant chaque utilisateur
<itemizedlist>
<listitem>
+6 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-04-15 23:39+0200\n"
"POT-Creation-Date: 2009-04-21 17:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1343,6 +1343,11 @@ msgstr ""
msgid "time format for \"time\" bar item"
msgstr "formát času pro \"time\" položu pole"
msgid ""
"jump to previous buffer displayed when jumping to current buffer number (to "
"easyly switch to another buffer, then come back to current buffer)"
msgstr ""
msgid "display nick mode ((half)op/voice) before each nick"
msgstr "zobrazit mód přezdívky ((částečný)op/voice) před každou přezdívkou"
+6 -1
View File
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-04-15 23:39+0200\n"
"POT-Creation-Date: 2009-04-21 17:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1362,6 +1362,11 @@ msgstr ""
msgid "time format for \"time\" bar item"
msgstr "Timestamp in der Infobar"
msgid ""
"jump to previous buffer displayed when jumping to current buffer number (to "
"easyly switch to another buffer, then come back to current buffer)"
msgstr ""
msgid "display nick mode ((half)op/voice) before each nick"
msgstr "Nickmode (@%+) vorm Nickname anzeigen"
+6 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-04-15 23:39+0200\n"
"POT-Creation-Date: 2009-04-21 17:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1339,6 +1339,11 @@ msgstr ""
msgid "time format for \"time\" bar item"
msgstr "fecha y hora para las conversaciones guardadas"
msgid ""
"jump to previous buffer displayed when jumping to current buffer number (to "
"easyly switch to another buffer, then come back to current buffer)"
msgstr ""
msgid "display nick mode ((half)op/voice) before each nick"
msgstr "mostrar modo del usuario ((half)op/voice) antes de cada usuario"
+10 -2
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-04-15 23:39+0200\n"
"PO-Revision-Date: 2009-04-15 23:39+0200\n"
"POT-Creation-Date: 2009-04-21 17:40+0200\n"
"PO-Revision-Date: 2009-04-21 17:29+0200\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1477,6 +1477,14 @@ msgstr ""
msgid "time format for \"time\" bar item"
msgstr "format de date/heure pour l'objet de barre \"time\""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number (to "
"easyly switch to another buffer, then come back to current buffer)"
msgstr ""
"sauter au tampon affiché précédemment lors du saut vers le numéro de tampon "
"courant (pour facilement basculer à un autre tampon, puis revenir au tampon "
"courant)"
msgid "display nick mode ((half)op/voice) before each nick"
msgstr "afficher le mode du pseudo ((half)op/voice) devant chaque utilisateur"
+6 -1
View File
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-04-15 23:39+0200\n"
"POT-Creation-Date: 2009-04-21 17:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1371,6 +1371,11 @@ msgstr ""
msgid "time format for \"time\" bar item"
msgstr "időbélyeg a információs pult idejéhez"
msgid ""
"jump to previous buffer displayed when jumping to current buffer number (to "
"easyly switch to another buffer, then come back to current buffer)"
msgstr ""
msgid "display nick mode ((half)op/voice) before each nick"
msgstr "a felhasználó módjának ((fél)operátor/voice) mutatása a név előtt"
+6 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-04-15 23:39+0200\n"
"POT-Creation-Date: 2009-04-21 17:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1373,6 +1373,11 @@ msgstr ""
msgid "time format for \"time\" bar item"
msgstr "время в информационной строке"
msgid ""
"jump to previous buffer displayed when jumping to current buffer number (to "
"easyly switch to another buffer, then come back to current buffer)"
msgstr ""
msgid "display nick mode ((half)op/voice) before each nick"
msgstr "отображать режим ника (op/voice) перед каждым ником"
+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: 2009-04-15 23:39+0200\n"
"POT-Creation-Date: 2009-04-21 17:40+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"
@@ -1170,6 +1170,11 @@ msgstr ""
msgid "time format for \"time\" bar item"
msgstr ""
msgid ""
"jump to previous buffer displayed when jumping to current buffer number (to "
"easyly switch to another buffer, then come back to current buffer)"
msgstr ""
msgid "display nick mode ((half)op/voice) before each nick"
msgstr ""
+8
View File
@@ -82,6 +82,7 @@ struct t_config_option *config_look_hotlist_names_level;
struct t_config_option *config_look_hotlist_short_names;
struct t_config_option *config_look_hotlist_sort;
struct t_config_option *config_look_item_time_format;
struct t_config_option *config_look_jump_current_to_previous_buffer;
struct t_config_option *config_look_nickmode;
struct t_config_option *config_look_nickmode_empty;
struct t_config_option *config_look_paste_max_lines;
@@ -1144,6 +1145,13 @@ config_weechat_init_options ()
"item_time_format", "string",
N_("time format for \"time\" bar item"),
NULL, 0, 0, "%H:%M", NULL, 0, NULL, NULL, NULL, 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",
N_("jump to previous buffer displayed when jumping to current buffer "
"number (to easyly switch to another buffer, then come back to "
"current buffer)"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
config_look_nickmode = config_file_new_option (
weechat_config_file, ptr_section,
"nickmode", "boolean",
+1
View File
@@ -88,6 +88,7 @@ extern struct t_config_option *config_look_hotlist_names_level;
extern struct t_config_option *config_look_hotlist_short_names;
extern struct t_config_option *config_look_hotlist_sort;
extern struct t_config_option *config_look_item_time_format;
extern struct t_config_option *config_look_jump_current_to_previous_buffer;
extern struct t_config_option *config_look_nickmode;
extern struct t_config_option *config_look_nickmode_empty;
extern struct t_config_option *config_look_paste_max_lines;
+10 -2
View File
@@ -1380,8 +1380,16 @@ gui_buffer_switch_by_number (struct t_gui_window *window, int number)
return;
/* buffer is currently displayed ? then jump to previous buffer */
if ((number == window->buffer->number) && gui_previous_buffer)
number = gui_previous_buffer->number;
if (number == window->buffer->number)
{
if (CONFIG_BOOLEAN(config_look_jump_current_to_previous_buffer)
&& gui_previous_buffer)
{
number = gui_previous_buffer->number;
}
else
return;
}
/* search for buffer in the list */
for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer)