1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33:13 +02:00

Add new option weechat.look.read_marker_always_show

This commit is contained in:
Sebastien Helleu
2010-03-03 22:19:51 +01:00
parent d1950311cf
commit 4faa3c772b
14 changed files with 55 additions and 12 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
FlashCode <flashcode@flashtux.org>
v0.3.2-dev, 2010-03-02
v0.3.2-dev, 2010-03-03
Version 0.3.2 (under dev!)
@@ -19,6 +19,7 @@ Version 0.3.2 (under dev!)
weechat_util_get_time_string in plugin API (patch #6914)
* core: add new option weechat.look.command_chars, add functions
string_is_command_char and string_input_for_buffer in plugin and script API
* core: add new option weechat.look.read_marker_always_show
* core: use arguments for infolist "nicklist" to return only one nick or group
* gui: fix bug with global history, reset pointer to last entry after each user
input (bug #28754)
+4 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-02 16:35+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\n"
"PO-Revision-Date: 2010-02-23 10:43+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1680,6 +1680,9 @@ msgstr ""
"použít značku (řádek nebo znak) v bufferech pro zobrazení první nepřečtené "
"řádky"
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
msgid "save configuration file on exit"
msgstr "uložit soubor s nastavením při ukončení"
+4 -1
View File
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-02 16:35+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\n"
"PO-Revision-Date: 2010-02-23 10:43+0100\n"
"Last-Translator: Nils G <weechatter@arcor.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1767,6 +1767,9 @@ msgstr "Nach dem Präfix anzufügende Zeichenfolge"
msgid "use a marker (line or char) on buffers to show first unread line"
msgstr "Markiere die erste, ungelesene Zeile bei Server- und Channel-Buffern"
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
msgid "save configuration file on exit"
msgstr "Konfiguration beim Beenden abspeichern"
+4 -1
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-02 16:35+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\n"
"PO-Revision-Date: 2010-02-23 10:43+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1707,6 +1707,9 @@ msgstr ""
"usa un marcador (línea o carácter) para indicar la primera línea sin leer en "
"el buffer"
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
msgid "save configuration file on exit"
msgstr "guardar archivo de configuración al salir"
+7 -2
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-02 16:35+0100\n"
"PO-Revision-Date: 2010-02-28 21:07+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\n"
"PO-Revision-Date: 2010-03-03 22:15+0100\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1731,6 +1731,11 @@ msgstr ""
"utiliser un marqueur (ligne ou caractère) sur les tampons pour montrer la "
"première ligne non lue"
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
"toujours afficher le marqueur de lecture, même s'il est après la dernière "
"ligne du tampon"
msgid "save configuration file on exit"
msgstr "sauvegarder la configuration en quittant"
+4 -1
View File
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-02 16:35+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\n"
"PO-Revision-Date: 2010-02-23 10:43+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1545,6 +1545,9 @@ msgstr "névkiegészítés után beszúrt szöveg"
msgid "use a marker (line or char) on buffers to show first unread line"
msgstr "jelölje a szerveren/szobában utoljára olvasott sort"
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
#, fuzzy
msgid "save configuration file on exit"
msgstr "beállítások mentése kilépéskor"
+4 -1
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Weechat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-02 16:35+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\n"
"PO-Revision-Date: 2010-02-23 10:43+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1705,6 +1705,9 @@ msgstr ""
"usa un evidenziatore (riga o carattere) sui buffer per mostrare la prima "
"riga non letta"
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
msgid "save configuration file on exit"
msgstr "salva file di configurazione all'uscita"
+4 -1
View File
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.0-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-02 16:35+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\n"
"PO-Revision-Date: 2010-02-23 10:43+0100\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: Polish\n"
@@ -1730,6 +1730,9 @@ msgstr ""
"używaj znacznika (lini albo znaku) do zaznaczania pierwszej nieprzeczytanej "
"lini w buforze"
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
msgid "save configuration file on exit"
msgstr "zapisz plik konfiguracyjny przy wyjściu"
+4 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-02 16:35+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\n"
"PO-Revision-Date: 2010-02-23 10:43+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1556,6 +1556,9 @@ msgstr "строка, вставляемая после автодополнен
msgid "use a marker (line or char) on buffers to show first unread line"
msgstr "использовать маркер непрочитанных сообщений в окнах серверов и каналов"
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
#, fuzzy
msgid "save configuration file on exit"
msgstr "сохранять конфигурационный файл при выходе"
+4 -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: 2010-03-02 16:35+0100\n"
"POT-Creation-Date: 2010-03-03 22:13+0100\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"
@@ -1332,6 +1332,9 @@ msgstr ""
msgid "use a marker (line or char) on buffers to show first unread line"
msgstr ""
msgid "always show read marker, even if it is after last buffer line"
msgstr ""
msgid "save configuration file on exit"
msgstr ""
+6
View File
@@ -100,6 +100,7 @@ struct t_config_option *config_look_prefix_buffer_align_max;
struct t_config_option *config_look_prefix_buffer_align_more;
struct t_config_option *config_look_prefix_suffix;
struct t_config_option *config_look_read_marker;
struct t_config_option *config_look_read_marker_always_show;
struct t_config_option *config_look_save_config_on_exit;
struct t_config_option *config_look_save_layout_on_exit;
struct t_config_option *config_look_scroll_amount;
@@ -1406,6 +1407,11 @@ config_weechat_init_options ()
N_("use a marker (line or char) on buffers to show first unread line"),
"none|line|dotted-line|char",
0, 0, "dotted-line", NULL, 0, NULL, NULL, &config_change_read_marker, NULL, NULL, NULL);
config_look_read_marker_always_show = config_file_new_option (
weechat_config_file, ptr_section,
"read_marker_always_show", "boolean",
N_("always show read marker, even if it is after last buffer line"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
config_look_save_config_on_exit = config_file_new_option (
weechat_config_file, ptr_section,
"save_config_on_exit", "boolean",
+1
View File
@@ -115,6 +115,7 @@ extern struct t_config_option *config_look_prefix_buffer_align_max;
extern struct t_config_option *config_look_prefix_buffer_align_more;
extern struct t_config_option *config_look_prefix_suffix;
extern struct t_config_option *config_look_read_marker;
extern struct t_config_option *config_look_read_marker_always_show;
extern struct t_config_option *config_look_save_config_on_exit;
extern struct t_config_option *config_look_save_layout_on_exit;
extern struct t_config_option *config_look_scroll_amount;
+1 -1
View File
@@ -926,7 +926,7 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line,
}
}
if (marker_line && gui_line_get_next_displayed (line))
if (marker_line)
{
gui_chat_display_horizontal_line (window, simulate);
gui_chat_display_new_line (window, num_lines, count,
+6
View File
@@ -586,6 +586,12 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
ptr_bar_window->bar->bar_refresh_needed = 1;
}
if (CONFIG_BOOLEAN(config_look_read_marker_always_show)
&& set_last_read && !window->buffer->lines->last_read_line)
{
window->buffer->lines->last_read_line = window->buffer->lines->last_line;
}
hook_signal_send ("buffer_switch",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}