From c8a479453d327ae8b9c1c1e3e0dbdc042e7b9b66 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 1 Dec 2013 08:46:07 +0100 Subject: [PATCH] core: add missing access to hdata "buffer_visited" --- ChangeLog | 1 + doc/de/autogen/plugin_api/hdata.txt | 9 +++++++++ doc/en/autogen/plugin_api/hdata.txt | 9 +++++++++ doc/fr/autogen/plugin_api/hdata.txt | 9 +++++++++ doc/it/autogen/plugin_api/hdata.txt | 9 +++++++++ doc/ja/autogen/plugin_api/hdata.txt | 9 +++++++++ po/cs.po | 6 +++++- po/de.po | 6 +++++- po/es.po | 6 +++++- po/fr.po | 7 +++++-- po/hu.po | 6 +++++- po/it.po | 6 +++++- po/ja.po | 6 +++++- po/pl.po | 6 +++++- po/pt_BR.po | 6 +++++- po/ru.po | 6 +++++- po/tr.po | 5 ++++- po/weechat.pot | 5 ++++- src/gui/gui-buffer.h | 2 ++ src/plugins/plugin-api.c | 2 ++ 20 files changed, 108 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8e0263b47..5a05ca935 100644 --- a/ChangeLog +++ b/ChangeLog @@ -34,6 +34,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * core: fix truncated prefix when filters are toggled (bug #40204) * core: add options to customize default text search in buffers: weechat.look.buffer_search_{case_sensitive|force_default|regex|where} +* add hdata "buffer_visited" * api: add support of infos with format `${info:name,arguments}` in function string_eval_expression and command /eval * api: add support for C++ plugins diff --git a/doc/de/autogen/plugin_api/hdata.txt b/doc/de/autogen/plugin_api/hdata.txt index d93d1edf7..a1666d07a 100644 --- a/doc/de/autogen/plugin_api/hdata.txt +++ b/doc/de/autogen/plugin_api/hdata.txt @@ -550,6 +550,15 @@ *** 'gui_buffer_last_displayed' *** 'gui_buffers' *** 'last_gui_buffer' +* 'buffer_visited': visited buffer +** Erweiterung: weechat +** Variablen: +*** 'buffer' (pointer, hdata: "buffer") +*** 'prev_buffer' (pointer, hdata: "buffer_visited") +*** 'next_buffer' (pointer, hdata: "buffer_visited") +** Listen: +*** 'gui_buffers_visited' +*** 'last_gui_buffer_visited' * 'completion': Struktur mit Vervollständigung ** Erweiterung: weechat ** Variablen: diff --git a/doc/en/autogen/plugin_api/hdata.txt b/doc/en/autogen/plugin_api/hdata.txt index 26985dc19..fd13297ed 100644 --- a/doc/en/autogen/plugin_api/hdata.txt +++ b/doc/en/autogen/plugin_api/hdata.txt @@ -550,6 +550,15 @@ *** 'gui_buffer_last_displayed' *** 'gui_buffers' *** 'last_gui_buffer' +* 'buffer_visited': visited buffer +** plugin: weechat +** variables: +*** 'buffer' (pointer, hdata: "buffer") +*** 'prev_buffer' (pointer, hdata: "buffer_visited") +*** 'next_buffer' (pointer, hdata: "buffer_visited") +** lists: +*** 'gui_buffers_visited' +*** 'last_gui_buffer_visited' * 'completion': structure with completion ** plugin: weechat ** variables: diff --git a/doc/fr/autogen/plugin_api/hdata.txt b/doc/fr/autogen/plugin_api/hdata.txt index adce90939..b7861f1ba 100644 --- a/doc/fr/autogen/plugin_api/hdata.txt +++ b/doc/fr/autogen/plugin_api/hdata.txt @@ -550,6 +550,15 @@ *** 'gui_buffer_last_displayed' *** 'gui_buffers' *** 'last_gui_buffer' +* 'buffer_visited': tampon visité +** extension: weechat +** variables: +*** 'buffer' (pointer, hdata: "buffer") +*** 'prev_buffer' (pointer, hdata: "buffer_visited") +*** 'next_buffer' (pointer, hdata: "buffer_visited") +** listes: +*** 'gui_buffers_visited' +*** 'last_gui_buffer_visited' * 'completion': structure avec une complétion ** extension: weechat ** variables: diff --git a/doc/it/autogen/plugin_api/hdata.txt b/doc/it/autogen/plugin_api/hdata.txt index b91cc8dcd..d9e058268 100644 --- a/doc/it/autogen/plugin_api/hdata.txt +++ b/doc/it/autogen/plugin_api/hdata.txt @@ -550,6 +550,15 @@ *** 'gui_buffer_last_displayed' *** 'gui_buffers' *** 'last_gui_buffer' +* 'buffer_visited': visited buffer +** plugin: weechat +** variables: +*** 'buffer' (pointer, hdata: "buffer") +*** 'prev_buffer' (pointer, hdata: "buffer_visited") +*** 'next_buffer' (pointer, hdata: "buffer_visited") +** lists: +*** 'gui_buffers_visited' +*** 'last_gui_buffer_visited' * 'completion': struttura con completamento ** plugin: weechat ** variables: diff --git a/doc/ja/autogen/plugin_api/hdata.txt b/doc/ja/autogen/plugin_api/hdata.txt index 0559894da..0cfa7078b 100644 --- a/doc/ja/autogen/plugin_api/hdata.txt +++ b/doc/ja/autogen/plugin_api/hdata.txt @@ -550,6 +550,15 @@ *** 'gui_buffer_last_displayed' *** 'gui_buffers' *** 'last_gui_buffer' +* 'buffer_visited': visited buffer +** プラグイン: weechat +** variables: +*** 'buffer' (pointer, hdata: "buffer") +*** 'prev_buffer' (pointer, hdata: "buffer_visited") +*** 'next_buffer' (pointer, hdata: "buffer_visited") +** lists: +*** 'gui_buffers_visited' +*** 'last_gui_buffer_visited' * 'completion': 補完する構造 ** プラグイン: weechat ** variables: diff --git a/po/cs.po b/po/cs.po index ec29cad1b..754eda408 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-09 10:18+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -7950,6 +7950,10 @@ msgstr "spravuje okna" msgid "buffer" msgstr "řídit buffery" +#, fuzzy +msgid "visited buffer" +msgstr "seznam bufferů" + #, fuzzy msgid "structure with completion" msgstr "funkce pro příkazovou řádku" diff --git a/po/de.po b/po/de.po index 302333c6a..0771cadf7 100644 --- a/po/de.po +++ b/po/de.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.3-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-20 15:12+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -8819,6 +8819,10 @@ msgstr "Bar-Fenster" msgid "buffer" msgstr "Buffer" +#, fuzzy +msgid "visited buffer" +msgstr "Auflistung der Buffer" + msgid "structure with completion" msgstr "Struktur mit Vervollständigung" diff --git a/po/es.po b/po/es.po index 292c9144a..77485cff6 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-09 10:18+0100\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -8221,6 +8221,10 @@ msgstr "barra de ventana" msgid "buffer" msgstr "buffer" +#, fuzzy +msgid "visited buffer" +msgstr "lista de buffers" + msgid "structure with completion" msgstr "estructura con auto-completador" diff --git a/po/fr.po b/po/fr.po index 4fd7d71eb..61e4bb3ba 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" -"PO-Revision-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" +"PO-Revision-Date: 2013-12-01 08:40+0100\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -8578,6 +8578,9 @@ msgstr "fenêtre de barre" msgid "buffer" msgstr "tampon" +msgid "visited buffer" +msgstr "tampon visité" + msgid "structure with completion" msgstr "structure avec une complétion" diff --git a/po/hu.po b/po/hu.po index b3e3dd61e..694e66a1a 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-09 10:18+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -7393,6 +7393,10 @@ msgstr "ablakok kezelése" msgid "buffer" msgstr "pufferek kezelése" +#, fuzzy +msgid "visited buffer" +msgstr "Aliaszok listája:\n" + #, fuzzy msgid "structure with completion" msgstr "szöveg beillesztése a parancssorba" diff --git a/po/it.po b/po/it.po index 23ad23567..071c04875 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-09 10:18+0100\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -8345,6 +8345,10 @@ msgstr "finestra della barra" msgid "buffer" msgstr "buffer" +#, fuzzy +msgid "visited buffer" +msgstr "elenco dei buffer" + msgid "structure with completion" msgstr "struttura con completamento" diff --git a/po/ja.po b/po/ja.po index b1bdad073..6c3ab729f 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-09 10:18+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -8237,6 +8237,10 @@ msgstr "バーウィンドウ" msgid "buffer" msgstr "バッファ" +#, fuzzy +msgid "visited buffer" +msgstr "バッファのリスト" + msgid "structure with completion" msgstr "補完する構造" diff --git a/po/pl.po b/po/pl.po index effff7a0e..c567255b5 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-11 09:07+0100\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -8422,6 +8422,10 @@ msgstr "okno paska" msgid "buffer" msgstr "bufor" +#, fuzzy +msgid "visited buffer" +msgstr "lista buforów" + msgid "structure with completion" msgstr "struktura z uzupełnianiem" diff --git a/po/pt_BR.po b/po/pt_BR.po index 59ae931aa..9c3de04f4 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-09 10:18+0100\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -7616,6 +7616,10 @@ msgstr "janela da barra" msgid "buffer" msgstr "buffer" +#, fuzzy +msgid "visited buffer" +msgstr "lista de buffers" + msgid "structure with completion" msgstr "estrutura com completação" diff --git a/po/ru.po b/po/ru.po index 734d84386..dfb51de99 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-09 10:18+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -7422,6 +7422,10 @@ msgstr "управление окнами" msgid "buffer" msgstr "управление буферами" +#, fuzzy +msgid "visited buffer" +msgstr "Список сокращений:\n" + #, fuzzy msgid "structure with completion" msgstr "вставить строку в поле ввода" diff --git a/po/tr.po b/po/tr.po index 181c09b0b..ccdbed129 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-11-09 10:13+0100\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -6596,6 +6596,9 @@ msgstr "" msgid "buffer" msgstr "" +msgid "visited buffer" +msgstr "" + msgid "structure with completion" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index 01efa6eb8..e6f23a344 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-11-26 16:18+0100\n" +"POT-Creation-Date: 2013-12-01 08:38+0100\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: weechat-dev \n" @@ -6558,6 +6558,9 @@ msgstr "" msgid "buffer" msgstr "" +msgid "visited buffer" +msgstr "" + msgid "structure with completion" msgstr "" diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h index f9de9c4b1..6f937cc79 100644 --- a/src/gui/gui-buffer.h +++ b/src/gui/gui-buffer.h @@ -311,6 +311,8 @@ extern struct t_hdata *gui_buffer_hdata_buffer_cb (void *data, const char *hdata_name); extern struct t_hdata *gui_buffer_hdata_input_undo_cb (void *data, const char *hdata_name); +extern struct t_hdata *gui_buffer_hdata_buffer_visited_cb (void *data, + const char *hdata_name); extern int gui_buffer_add_to_infolist (struct t_infolist *infolist, struct t_gui_buffer *buffer); extern void gui_buffer_dump_hexa (struct t_gui_buffer *buffer); diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c index 3790cf741..cf2ee585c 100644 --- a/src/plugins/plugin-api.c +++ b/src/plugins/plugin-api.c @@ -1225,6 +1225,8 @@ plugin_api_init () &gui_bar_window_hdata_bar_window_cb, NULL); hook_hdata (NULL, "buffer", N_("buffer"), &gui_buffer_hdata_buffer_cb, NULL); + hook_hdata (NULL, "buffer_visited", N_("visited buffer"), + &gui_buffer_hdata_buffer_visited_cb, NULL); hook_hdata (NULL, "completion", N_("structure with completion"), &gui_completion_hdata_completion_cb, NULL); hook_hdata (NULL, "completion_partial", N_("structure with partial completion"),