1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 11:05:41 +02:00

buflist: add mouse support

New options:
- buflist.look.mouse_jump_visited_buffer
- buflist.look.mouse_move_buffer
- buflist.look.mouse_wheel

New keys added by buflist plugin:
- @item(buflist):button1*      => hsignal:buflist_mouse
- @item(buflist):button2*      => hsignal:buflist_mouse
- @bar(buflist):ctrl-wheelup   => hsignal:buflist_mouse
- @bar(buflist):ctrl-wheeldown => hsignal:buflist_mouse
This commit is contained in:
Sébastien Helleu
2017-03-30 20:39:37 +02:00
parent 467f482ea6
commit f0c8da2f05
33 changed files with 687 additions and 16 deletions
+18
View File
@@ -74,6 +74,24 @@
** Werte: beliebige Zeichenkette
** Standardwert: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
** Beschreibung: pass:none[if enabled, clicks with left/right buttons on the line with current buffer jump to previous/next visited buffer]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
** Beschreibung: pass:none[if enabled, mouse gestures (drag & drop) move buffers in list]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
** Beschreibung: pass:none[if enabled, mouse wheel up/down actions jump to previous/next buffer in list]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
** Beschreibung: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list]
** Typ: Zeichenkette
+18
View File
@@ -74,6 +74,24 @@
** values: any string
** default value: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
** description: pass:none[if enabled, clicks with left/right buttons on the line with current buffer jump to previous/next visited buffer]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
** description: pass:none[if enabled, mouse gestures (drag & drop) move buffers in list]
** type: boolean
** values: on, off
** default value: `+on+`
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
** description: pass:none[if enabled, mouse wheel up/down actions jump to previous/next buffer in list]
** type: boolean
** values: on, off
** default value: `+on+`
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
** description: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list]
** type: string
+1
View File
@@ -199,6 +199,7 @@ WeeChat "core" is located in following directories:
|       buflist-bar-item.c | Buflist bar items.
|       buflist-command.c | Buflist commands.
|       buflist-config.c | Buflist config options (file buflist.conf).
|       buflist-mouse.c | Buflist mouse actions.
|    charset/ | Charset plugin.
|       charset.c | Charset functions.
|    exec/ | Exec plugin.
+18
View File
@@ -74,6 +74,24 @@
** valeurs: toute chaîne
** valeur par défaut: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
** description: pass:none[si activé, les clics avec les boutons gauche/droit sur la ligne avec le tampon courant sautent au tampon visité avant/après]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
** description: pass:none[si activé, les gestes de souris (glisser/déposer) déplacent les tampons dans la liste]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
** description: pass:none[si activé, les actions de roulette de souris haut/bas sautent au tampon précédent/suivant dans la liste]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
** description: pass:none[liste de signaux séparés par des virgules qui sont accrochés et déclenchent l'affichage de la liste des tampons]
** type: chaîne
+1
View File
@@ -201,6 +201,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|       buflist-bar-item.c | Objets de barre Buflist.
|       buflist-command.c | Commandes pour Buflist.
|       buflist-config.c | Options de configuration pour Buflist (fichier buflist.conf).
|       buflist-mouse.c | Actions souris pour Buflist.
|    charset/ | Extension Charset.
|       charset.c | Fonctions pour Charset.
|    exec/ | Extension Exec.
+18
View File
@@ -74,6 +74,24 @@
** valori: qualsiasi stringa
** valore predefinito: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
** descrizione: pass:none[if enabled, clicks with left/right buttons on the line with current buffer jump to previous/next visited buffer]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
** descrizione: pass:none[if enabled, mouse gestures (drag & drop) move buffers in list]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
** descrizione: pass:none[if enabled, mouse wheel up/down actions jump to previous/next buffer in list]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
** descrizione: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list]
** tipo: stringa
+18
View File
@@ -74,6 +74,24 @@
** 値: 未制約文字列
** デフォルト値: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
** 説明: pass:none[if enabled, clicks with left/right buttons on the line with current buffer jump to previous/next visited buffer]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
** 説明: pass:none[if enabled, mouse gestures (drag & drop) move buffers in list]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
** 説明: pass:none[if enabled, mouse wheel up/down actions jump to previous/next buffer in list]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
** 説明: pass:none[フックされたシグナルおよびバッファリストの再読込シグナルのコンマ区切りリスト]
** タイプ: 文字列
+2
View File
@@ -205,6 +205,8 @@ WeeChat "core" は以下のディレクトリに配置されています:
|       buflist-bar-item.c | buflist バー要素
|       buflist-command.c | buflist コマンド
|       buflist-config.c | buflist 設定オプション (buflist.conf ファイル)
// TRANSLATION MISSING
|       buflist-mouse.c | Buflist mouse actions.
|    charset/ | charset プラグイン
|       charset.c | charset 関数
|    exec/ | exec プラグイン
+18
View File
@@ -74,6 +74,24 @@
** wartości: dowolny ciąg
** domyślna wartość: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
** opis: pass:none[if enabled, clicks with left/right buttons on the line with current buffer jump to previous/next visited buffer]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
** opis: pass:none[if enabled, mouse gestures (drag & drop) move buffers in list]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
** opis: pass:none[if enabled, mouse wheel up/down actions jump to previous/next buffer in list]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
** opis: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list]
** typ: ciąg
+2
View File
@@ -128,6 +128,8 @@
./src/plugins/buflist/buflist-command.h
./src/plugins/buflist/buflist-config.c
./src/plugins/buflist/buflist-config.h
./src/plugins/buflist/buflist-mouse.c
./src/plugins/buflist/buflist-mouse.h
./src/plugins/buflist/buflist.h
./src/plugins/charset/charset.c
./src/plugins/exec/exec.c
+13 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-01-06 21:59+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4928,6 +4928,18 @@ msgid ""
"buflist)"
msgstr "příkaz spuštěný při startu WeeChat, před načtením pluginů"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
#, fuzzy
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
+13 -1
View File
@@ -19,7 +19,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-03-12 21:27+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -5797,6 +5797,18 @@ msgstr ""
"Realname der auf dem Server genutzt werden soll (Hinweis: Inhalt wird "
"evaluiert, siehe /help eval)"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
#, fuzzy
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
+13 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-01-06 22:01+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5140,6 +5140,18 @@ msgid ""
"buflist)"
msgstr "comando ejecutado cuando WeeChat inicia, antes de cargar los plugins"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
#, fuzzy
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
+27 -2
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"PO-Revision-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-03-30 20:32+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -5716,6 +5716,24 @@ msgstr ""
"conditions pour afficher un tampon (note : le contenu est évalué, voir /help "
"buflist)"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
"si activé, les clics avec les boutons gauche/droit sur la ligne avec le "
"tampon courant sautent au tampon visité avant/après"
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
"si activé, les gestes de souris (glisser/déposer) déplacent les tampons dans "
"la liste"
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
"si activé, les actions de roulette de souris haut/bas sautent au tampon "
"précédent/suivant dans la liste"
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
"buffers list"
@@ -13029,6 +13047,13 @@ msgstr "%s%s : délai d'attente dépassé pour \"%s\" avec %s"
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s : impossible de se connecter : erreur inattendue (%d)"
#~ msgid ""
#~ "jump to previous/next visited buffer if you click with left/right mouse "
#~ "button on line with current buffer"
#~ msgstr ""
#~ "sauter au tampon visité avant/après si vous cliquez avec le bouton gauche/"
#~ "droit de la souris sur la ligne avec le tampon courant"
#~ msgid "\"days\" (optional: just return the number of days)"
#~ msgstr "\"days\" (optionnel : retourner juste le nombre de jours)"
+13 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-01-06 22:03+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4465,6 +4465,18 @@ msgid ""
"buflist)"
msgstr "felhasználónév az IRC szerveren"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
"buffers list"
+13 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-01-06 22:04+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5281,6 +5281,18 @@ msgstr ""
"nome utente per il server proxy (nota: il contenuto viene valutato, "
"consultare /help eval)"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
#, fuzzy
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
+13 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-03-26 09:00+0900\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -5448,6 +5448,18 @@ msgid ""
msgstr ""
"バッファの表示条件 (注意: 値は評価されます、/help eval を参照してください)"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
"buffers list"
+13 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-01-06 22:05+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5534,6 +5534,18 @@ msgstr ""
"prawdziwa nazwa do użycia na serwerze (uwaga: zawartość jest przetwarzana, "
"zobacz /help eval)"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
#, fuzzy
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
+13 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-01-14 21:39+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -5535,6 +5535,18 @@ msgid ""
msgstr ""
"nome real a usar no servidor (nota: o conteúdo é avaliado, ver /help eval)"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
#, fuzzy
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
+13 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2016-09-03 08:24+0200\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5083,6 +5083,18 @@ msgstr ""
"comando executado quando o WeeChat inicia, antes do carregamento dos plugins "
"(nota: conteúdo é avaliado, veja /help eval)"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
#, fuzzy
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
+13 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-01-06 22:06+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4503,6 +4503,18 @@ msgid ""
"buflist)"
msgstr "ник, используемый на IRC сервере"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
"buffers list"
+2
View File
@@ -129,6 +129,8 @@ SET(WEECHAT_SOURCES
./src/plugins/buflist/buflist-command.h
./src/plugins/buflist/buflist-config.c
./src/plugins/buflist/buflist-config.h
./src/plugins/buflist/buflist-mouse.c
./src/plugins/buflist/buflist-mouse.h
./src/plugins/buflist/buflist.h
./src/plugins/charset/charset.c
./src/plugins/exec/exec.c
+13 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2017-01-06 22:07+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4068,6 +4068,18 @@ msgid ""
"buflist)"
msgstr ""
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
"buffers list"
+13 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-03-29 19:58+0200\n"
"POT-Creation-Date: 2017-03-30 20:31+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4053,6 +4053,18 @@ msgid ""
"buflist)"
msgstr ""
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
"jump to previous/next visited buffer"
msgstr ""
msgid "if enabled, mouse gestures (drag & drop) move buffers in list"
msgstr ""
msgid ""
"if enabled, mouse wheel up/down actions jump to previous/next buffer in list"
msgstr ""
msgid ""
"comma-separated list of signals that are hooked and trigger the refresh of "
"buffers list"
+2 -1
View File
@@ -21,7 +21,8 @@ add_library(buflist MODULE
buflist.c buflist.h
buflist-bar-item.c buflist-bar-item.h
buflist-command.c buflist-command.h
buflist-config.c buflist-config.h)
buflist-config.c buflist-config.h
buflist-mouse.c buflist-mouse.h)
set_target_properties(buflist PROPERTIES PREFIX "")
target_link_libraries(buflist)
+3 -1
View File
@@ -30,7 +30,9 @@ buflist_la_SOURCES = buflist.c \
buflist-command.c \
buflist-command.h \
buflist-config.c \
buflist-config.h
buflist-config.h \
buflist-mouse.c \
buflist-mouse.h
buflist_la_LDFLAGS = -module -no-undefined
buflist_la_LIBADD = $(BUFLIST_LFLAGS)
+14
View File
@@ -34,6 +34,7 @@ struct t_hashtable *buflist_hashtable_pointers = NULL;
struct t_hashtable *buflist_hashtable_extra_vars = NULL;
struct t_hashtable *buflist_hashtable_options = NULL;
struct t_hashtable *buflist_hashtable_options_conditions = NULL;
struct t_arraylist *buflist_list_buffers = NULL;
/*
@@ -92,6 +93,11 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
snprintf (str_format_number_empty, sizeof (str_format_number_empty),
"%%-%ds", length_max_number);
if (buflist_list_buffers)
weechat_arraylist_free (buflist_list_buffers);
buflist_list_buffers = weechat_arraylist_new (16, 0, 1,
NULL, NULL, NULL, NULL);
buffers = buflist_sort_buffers ();
for (i = 0; i < weechat_arraylist_size (buffers); i++)
@@ -114,6 +120,8 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
if (!rc)
continue;
weechat_arraylist_add (buflist_list_buffers, ptr_buffer);
current_buffer = (ptr_buffer == ptr_current_buffer);
ptr_hotlist = weechat_hdata_pointer (buflist_hdata_buffer,
@@ -373,4 +381,10 @@ buflist_bar_item_end ()
weechat_hashtable_free (buflist_hashtable_options_conditions);
buflist_hashtable_options_conditions = NULL;
if (buflist_list_buffers)
{
weechat_arraylist_free (buflist_list_buffers);
buflist_list_buffers = NULL;
}
}
+2
View File
@@ -22,6 +22,8 @@
#define BUFLIST_BAR_ITEM_NAME "buflist"
extern struct t_arraylist *buflist_list_buffers;
extern int buflist_bar_item_init ();
extern void buflist_bar_item_end ();
+29
View File
@@ -32,6 +32,9 @@ struct t_config_file *buflist_config_file = NULL;
/* buflist config, look section */
struct t_config_option *buflist_config_look_display_conditions;
struct t_config_option *buflist_config_look_mouse_jump_visited_buffer;
struct t_config_option *buflist_config_look_mouse_move_buffer;
struct t_config_option *buflist_config_look_mouse_wheel;
struct t_config_option *buflist_config_look_signals_refresh;
struct t_config_option *buflist_config_look_sort;
@@ -218,6 +221,32 @@ buflist_config_init ()
NULL, NULL, NULL,
&buflist_config_change_signals_refresh, NULL, NULL,
NULL, NULL, NULL);
buflist_config_look_mouse_jump_visited_buffer = weechat_config_new_option (
buflist_config_file, ptr_section,
"mouse_jump_visited_buffer", "boolean",
N_("if enabled, clicks with left/right buttons on the line with "
"current buffer jump to previous/next visited buffer"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
buflist_config_look_mouse_move_buffer = weechat_config_new_option (
buflist_config_file, ptr_section,
"mouse_move_buffer", "boolean",
N_("if enabled, mouse gestures (drag & drop) move buffers in list"),
NULL, 0, 0, "on", NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
buflist_config_look_mouse_wheel = weechat_config_new_option (
buflist_config_file, ptr_section,
"mouse_wheel", "boolean",
N_("if enabled, mouse wheel up/down actions jump to previous/next "
"buffer in list"),
NULL, 0, 0, "on", NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
buflist_config_look_signals_refresh = weechat_config_new_option (
buflist_config_file, ptr_section,
"signals_refresh", "string",
+3
View File
@@ -25,6 +25,9 @@
extern struct t_config_file *buflist_config_file;
extern struct t_config_option *buflist_config_look_display_conditions;
extern struct t_config_option *buflist_config_look_mouse_jump_visited_buffer;
extern struct t_config_option *buflist_config_look_mouse_move_buffer;
extern struct t_config_option *buflist_config_look_mouse_wheel;
extern struct t_config_option *buflist_config_look_signals_refresh;
extern struct t_config_option *buflist_config_look_sort;
File diff suppressed because it is too large Load Diff
+28
View File
@@ -0,0 +1,28 @@
/*
* Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* WeeChat is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WEECHAT_BUFLIST_MOUSE_H
#define WEECHAT_BUFLIST_MOUSE_H 1
#define BUFLIST_MOUSE_HSIGNAL "buflist_mouse"
extern int buflist_mouse_init ();
extern void buflist_mouse_end ();
#endif /* WEECHAT_BUFLIST_MOUSE_H */
+5
View File
@@ -27,6 +27,7 @@
#include "buflist-bar-item.h"
#include "buflist-command.h"
#include "buflist-config.h"
#include "buflist-mouse.h"
WEECHAT_PLUGIN_NAME(BUFLIST_PLUGIN_NAME);
@@ -253,6 +254,8 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
weechat_bar_item_update (BUFLIST_BAR_ITEM_NAME);
buflist_mouse_init ();
return WEECHAT_RC_OK;
}
@@ -266,6 +269,8 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
/* make C compiler happy */
(void) plugin;
buflist_mouse_end ();
buflist_bar_item_end ();
buflist_config_write ();