summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-04-05 16:30:13 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-04-05 16:30:13 +0200
commitc7ce05d5ec3d967cd7afa3cd8acd5183bd1a97bd (patch)
tree46991d0441ef95e60aaa73e66329fb30798a0290
parent2beefdfc2ae36c4db1d68ab7fdc02c1d7e65ab7a (diff)
downloadweechat-c7ce05d5ec3d967cd7afa3cd8acd5183bd1a97bd.zip
core: add hidden buffers, add options hide/unhide in command /buffer
-rw-r--r--ChangeLog.asciidoc1
-rw-r--r--doc/de/autogen/plugin_api/hdata.txt1
-rw-r--r--doc/de/autogen/user/weechat_commands.txt84
-rw-r--r--doc/en/autogen/plugin_api/hdata.txt1
-rw-r--r--doc/en/autogen/user/weechat_commands.txt8
-rw-r--r--doc/en/weechat_plugin_api.en.txt8
-rw-r--r--doc/fr/autogen/plugin_api/hdata.txt1
-rw-r--r--doc/fr/autogen/user/weechat_commands.txt8
-rw-r--r--doc/fr/weechat_plugin_api.fr.txt8
-rw-r--r--doc/it/autogen/plugin_api/hdata.txt1
-rw-r--r--doc/it/autogen/user/weechat_commands.txt8
-rw-r--r--doc/it/weechat_plugin_api.it.txt10
-rw-r--r--doc/ja/autogen/plugin_api/hdata.txt1
-rw-r--r--doc/ja/autogen/user/weechat_commands.txt84
-rw-r--r--doc/ja/weechat_plugin_api.ja.txt10
-rw-r--r--doc/pl/autogen/plugin_api/hdata.txt1
-rw-r--r--doc/pl/autogen/user/weechat_commands.txt8
-rw-r--r--po/cs.po35
-rw-r--r--po/de.po50
-rw-r--r--po/es.po34
-rw-r--r--po/fr.po51
-rw-r--r--po/hu.po24
-rw-r--r--po/it.po33
-rw-r--r--po/ja.po63
-rw-r--r--po/pl.po35
-rw-r--r--po/pt_BR.po23
-rw-r--r--po/ru.po24
-rw-r--r--po/tr.po18
-rw-r--r--po/weechat.pot18
-rw-r--r--src/core/wee-command.c155
-rw-r--r--src/core/wee-upgrade.c10
-rw-r--r--src/gui/gui-buffer.c158
-rw-r--r--src/gui/gui-buffer.h9
-rw-r--r--src/gui/gui-input.c4
34 files changed, 606 insertions, 381 deletions
diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc
index b1a8410cf..3a63e386f 100644
--- a/ChangeLog.asciidoc
+++ b/ChangeLog.asciidoc
@@ -15,6 +15,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
== Version 0.4.4 (under dev)
+* core: add hidden buffers, add options hide/unhide in command /buffer
* core: fix "/buffer clear" with a name (don't clear all merged buffers with
same number)
* core: fix evaluation of expression with regex when a comparison char is in
diff --git a/doc/de/autogen/plugin_api/hdata.txt b/doc/de/autogen/plugin_api/hdata.txt
index 15e9797a6..7be238cf8 100644
--- a/doc/de/autogen/plugin_api/hdata.txt
+++ b/doc/de/autogen/plugin_api/hdata.txt
@@ -490,6 +490,7 @@
*** 'notify' (integer)
*** 'num_displayed' (integer)
*** 'active' (integer)
+*** 'hidden' (integer)
*** 'zoomed' (integer)
*** 'print_hooks_enabled' (integer)
*** 'day_change' (integer)
diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt
index 210633246..253926f2d 100644
--- a/doc/de/autogen/user/weechat_commands.txt
+++ b/doc/de/autogen/user/weechat_commands.txt
@@ -65,11 +65,13 @@ Beispiele:
----
/buffer list
- clear [<number>|<name>|-merged|-all]
+ clear [<number>|<name>|-merged|-all [<number>|<name>...]]
move <number>|-|+
- merge <number>
swap <number1>|<name1> [<number2>|<name2>]
+ merge <number>
unmerge [<number>|-all]
+ hide [<number>|<name> [<number>|<name>...]]
+ unhide [<number>|<name> [<number>|<name>...]]
renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>]
notify <level>
@@ -78,54 +80,56 @@ Beispiele:
get <property>
<number>|-|+|<name>
- list: alle geöffneten Buffer werden aufgelistet (ohne Angabe von Argumente wird diese Liste standardmäßig ausgegeben)
- clear: leert den Inhalt des Buffers (entweder durch Angabe der entsprechenden Nummer des Buffers oder "-merged " für zusammengefügte Buffer oder "-all" für alle Buffer. Ohne Angabe eines Arguments wird der aktuelle Buffer gelöscht)
- move: Buffer in der Liste verschieben (kann auch relativ sein, z.B. -1); "-" = auf erste Position verschieben, "+" = auf letzte Position + 1 verschieben
- swap: tauscht zwei Buffer miteinander aus (bei Angabe von nur einem Buffer (Buffernummer/-name), wird der aktuelle Buffer mit dem angegebenen Buffer getauscht)
- merge: fügt den aktuellen Buffer mit einem anderen Buffer zusammen (bei einem Chat-Buffer entsteht eine Zusammenfügung von zwei Buffer
- (Bei der Standardtastenbelegung kann mittels "CTRL-x" zwischen zusammengefügten Buffern umgeschaltet werden)
- unmerge: trennt Buffer wieder voneinander, falls zwei Buffer die selbe Nummer teilen
-renumber: Buffer werden um nummeriert (Option weechat.look.buffer_auto_renumber muss deaktiviert sein)
- close: Buffer schließen (Nummer oder Bereich ist optional)
- notify: setzt den Status der Benachrichtigung für den aktuellen Buffer. Folgende Möglichkeiten bestimmen den Grad der Benachrichtigung:
- none: keine Benachrichtigung
- highlight: Benachrichtigung bei hervorgehobenen Nachrichten (Highlights)
- message: Benachrichtigung bei Nachrichten von Usern + Highlights
- all: Benachrichtigung bei allen Nachrichten
- reset: Benachrichtigung auf Standardwert zurück setzen (all)
-localvar: zeigt die lokalen Variablen für den aktuellen Buffer an
- set: setzt eine Eigenschaft für den aktuellen Buffer
- get: zeigt eine Eigenschaft für den aktuellen Buffer an
- number: wechselt von einem Buffer zu einem anderen, mögliche Optionen:
- '+': relativer Sprung um 'n'-Buffer
- '-': relativer Sprung, um 'n'-Buffer
- '*': wechselt zum Buffer mit der Nummer 'n'; nutzt die interne Option "weechat.look.jump_current_to_previous_buffer"
- -: springt zum ersten Buffer
- +: springt zum letzten Buffer
- name: wechselt zum Buffer mit dem angegebenen Namen
-
-Beispiele:
- leert den aktuellen Buffer:
+ list: list buffers (without argument, this list is displayed)
+ clear: clear buffer content (number for a buffer, -merged for merged buffers, -all for all buffers, or nothing for current buffer)
+ move: move buffer in the list (may be relative, for example -1); "-" = move to first buffer number, "+" = move to last buffer number + 1
+ swap: swap two buffers (swap with current buffer if only one number/name given)
+ merge: merge current buffer to another buffer (chat area will be mix of both buffers)
+ (by default ctrl-x switches between merged buffers)
+ unmerge: unmerge buffer from other buffers which have same number
+ hide: hide the buffer
+ unhide: unhide the buffer
+renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
+ close: close buffer (number/range or name is optional)
+ notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
+ none: never
+ highlight: for highlights only
+ message: for messages from users + highlights
+ all: all messages
+ reset: reset to default value (all)
+localvar: display local variables for current buffer
+ set: set a property for current buffer
+ get: display a property of current buffer
+ number: jump to buffer by number, possible prefix:
+ '+': relative jump, add number to current
+ '-': relative jump, sub number to current
+ '*': jump to number, using option "weechat.look.jump_current_to_previous_buffer"
+ -: jump to first buffer number
+ +: jump to last buffer number
+ name: jump to buffer by (partial) name
+
+Examples:
+ clear current buffer:
/buffer clear
- verschiebt Buffer auf Position 5:
+ move buffer to number 5:
/buffer move 5
- tauscht Buffer 1 und 3:
+ swap buffer 1 with 3:
/buffer swap 1 3
- tauscht Buffer #weechat und den aktuellen Buffer:
+ swap buffer #weechat with current buffer:
/buffer swap #weechat
- verbindet Buffer mit dem Core-Buffer:
+ merge with core buffer:
/buffer merge 1
- trennt Buffer voneinander:
+ unmerge buffer:
/buffer unmerge
- schließt aktuellen Buffer:
+ close current buffer:
/buffer close
- schließt Buffer 5 bis 7:
+ close buffers 5 to 7:
/buffer close 5-7
- wechselt zum Buffer: #weechat:
+ jump to #weechat:
/buffer #weechat
- wechselt zum nächsten Buffer:
+ jump to next buffer:
/buffer +1
- springt zum letzten Buffer:
+ jump to last buffer number:
/buffer +
----
diff --git a/doc/en/autogen/plugin_api/hdata.txt b/doc/en/autogen/plugin_api/hdata.txt
index 37bb23f4a..5be72e9fd 100644
--- a/doc/en/autogen/plugin_api/hdata.txt
+++ b/doc/en/autogen/plugin_api/hdata.txt
@@ -490,6 +490,7 @@
*** 'notify' (integer)
*** 'num_displayed' (integer)
*** 'active' (integer)
+*** 'hidden' (integer)
*** 'zoomed' (integer)
*** 'print_hooks_enabled' (integer)
*** 'day_change' (integer)
diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt
index a28183d62..66bc4ce3b 100644
--- a/doc/en/autogen/user/weechat_commands.txt
+++ b/doc/en/autogen/user/weechat_commands.txt
@@ -65,11 +65,13 @@ Examples:
----
/buffer list
- clear [<number>|<name>|-merged|-all]
+ clear [<number>|<name>|-merged|-all [<number>|<name>...]]
move <number>|-|+
- merge <number>
swap <number1>|<name1> [<number2>|<name2>]
+ merge <number>
unmerge [<number>|-all]
+ hide [<number>|<name> [<number>|<name>...]]
+ unhide [<number>|<name> [<number>|<name>...]]
renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>]
notify <level>
@@ -85,6 +87,8 @@ Examples:
merge: merge current buffer to another buffer (chat area will be mix of both buffers)
(by default ctrl-x switches between merged buffers)
unmerge: unmerge buffer from other buffers which have same number
+ hide: hide the buffer
+ unhide: unhide the buffer
renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
close: close buffer (number/range or name is optional)
notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt
index c62b29f29..d6f111079 100644
--- a/doc/en/weechat_plugin_api.en.txt
+++ b/doc/en/weechat_plugin_api.en.txt
@@ -7964,6 +7964,14 @@ List of signals sent by WeeChat and plugins:
Pointer: buffer |
Buffer cleared
+| weechat | buffer_hidden |
+ Pointer: buffer |
+ Buffer hidden
+
+| weechat | buffer_unhidden |
+ Pointer: buffer |
+ Buffer unhidden
+
| weechat | buffer_line_added +
_(WeeChat ≥ 0.3.7)_ |
Pointer: line |
diff --git a/doc/fr/autogen/plugin_api/hdata.txt b/doc/fr/autogen/plugin_api/hdata.txt
index 5295c815d..03d626754 100644
--- a/doc/fr/autogen/plugin_api/hdata.txt
+++ b/doc/fr/autogen/plugin_api/hdata.txt
@@ -490,6 +490,7 @@
*** 'notify' (integer)
*** 'num_displayed' (integer)
*** 'active' (integer)
+*** 'hidden' (integer)
*** 'zoomed' (integer)
*** 'print_hooks_enabled' (integer)
*** 'day_change' (integer)
diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt
index 3b4e8dac6..4b4827a5e 100644
--- a/doc/fr/autogen/user/weechat_commands.txt
+++ b/doc/fr/autogen/user/weechat_commands.txt
@@ -65,11 +65,13 @@ Exemples:
----
/buffer list
- clear [<nombre>|<nom>|-merged|-all]
+ clear [<nombre>|<nom>|-merged|-all [<nombre>|<nom>...]]
move <nombre>|-|+
- merge <nombre>
swap <nombre1>|<nom1> [<nombre2>|<nom2>]
+ merge <nombre>
unmerge [<nombre>|-all]
+ hide [<nombre>|<nom> [<nombre>|<nom>...]]
+ unhide [<nombre>|<nom> [<nombre>|<nom>...]]
renumber <nombre1> [<nombre2> [<départ>]]
close [<n1>[-<n2>]|<nom>]
notify <niveau>
@@ -85,6 +87,8 @@ Exemples:
merge: mélanger le tampon courant avec un autre tampon (la zone de discussion sera un mélange des deux tampons)
(par défaut ctrl-x bascule entre les tampons mélangés)
unmerge: détacher le tampon courant des autres tampons portant le même numéro
+ hide: masquer le tampon
+ unhide: démasquer le tampon
renumber: renuméroter des tampons (fonctionne seulement si l'option weechat.look.buffer_auto_renumber est désactivée)
close: fermer le tampon (nombre/intervalle ou nom optionnel)
notify: définir le niveau de notification pour le tampon courant: ce niveau détermine si le tampon doit être ajouté à la hotlist ou pas:
diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt
index 2b0d18397..51708dd9b 100644
--- a/doc/fr/weechat_plugin_api.fr.txt
+++ b/doc/fr/weechat_plugin_api.fr.txt
@@ -8106,6 +8106,14 @@ Liste des signaux envoyés par WeeChat et les extensions :
Pointeur : tampon |
Tampon vidé
+| weechat | buffer_hidden |
+ Pointeur : tampon |
+ Tampon masqué
+
+| weechat | buffer_unhidden |
+ Pointeur : tampon |
+ Tampon démasqué
+
| weechat | buffer_line_added +
_(WeeChat ≥ 0.3.7)_ |
Pointeur : ligne |
diff --git a/doc/it/autogen/plugin_api/hdata.txt b/doc/it/autogen/plugin_api/hdata.txt
index 73d7f8aa0..5b8395301 100644
--- a/doc/it/autogen/plugin_api/hdata.txt
+++ b/doc/it/autogen/plugin_api/hdata.txt
@@ -490,6 +490,7 @@
*** 'notify' (integer)
*** 'num_displayed' (integer)
*** 'active' (integer)
+*** 'hidden' (integer)
*** 'zoomed' (integer)
*** 'print_hooks_enabled' (integer)
*** 'day_change' (integer)
diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt
index 1c7c8c806..2e2ac62cf 100644
--- a/doc/it/autogen/user/weechat_commands.txt
+++ b/doc/it/autogen/user/weechat_commands.txt
@@ -65,11 +65,13 @@ Examples:
----
/buffer list
- clear [<number>|<name>|-merged|-all]
+ clear [<number>|<name>|-merged|-all [<number>|<name>...]]
move <number>|-|+
- merge <number>
swap <number1>|<name1> [<number2>|<name2>]
+ merge <number>
unmerge [<number>|-all]
+ hide [<number>|<name> [<number>|<name>...]]
+ unhide [<number>|<name> [<number>|<name>...]]
renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>]
notify <level>
@@ -85,6 +87,8 @@ Examples:
merge: merge current buffer to another buffer (chat area will be mix of both buffers)
(by default ctrl-x switches between merged buffers)
unmerge: unmerge buffer from other buffers which have same number
+ hide: hide the buffer
+ unhide: unhide the buffer
renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
close: close buffer (number/range or name is optional)
notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index ae0adc588..179325186 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -8133,6 +8133,16 @@ List of signals sent by WeeChat and plugins:
Puntatore: buffer |
Buffer cleared
+// TRANSLATION MISSING
+| weechat | buffer_hidden |
+ Pointer: buffer |
+ Buffer hidden
+
+// TRANSLATION MISSING
+| weechat | buffer_unhidden |
+ Pointer: buffer |
+ Buffer unhidden
+
| weechat | buffer_line_added +
_(WeeChat ≥ 0.3.7)_ |
Puntatore: riga |
diff --git a/doc/ja/autogen/plugin_api/hdata.txt b/doc/ja/autogen/plugin_api/hdata.txt
index 109ff2ebe..d837704df 100644
--- a/doc/ja/autogen/plugin_api/hdata.txt
+++ b/doc/ja/autogen/plugin_api/hdata.txt
@@ -490,6 +490,7 @@
*** 'notify' (integer)
*** 'num_displayed' (integer)
*** 'active' (integer)
+*** 'hidden' (integer)
*** 'zoomed' (integer)
*** 'print_hooks_enabled' (integer)
*** 'day_change' (integer)
diff --git a/doc/ja/autogen/user/weechat_commands.txt b/doc/ja/autogen/user/weechat_commands.txt
index 69ea01529..01b1b8d49 100644
--- a/doc/ja/autogen/user/weechat_commands.txt
+++ b/doc/ja/autogen/user/weechat_commands.txt
@@ -65,11 +65,13 @@ message: 離席メッセージ (メッセージが無い場合は、離席状態
----
/buffer list
- clear [<number>|<name>|-merged|-all]
+ clear [<number>|<name>|-merged|-all [<number>|<name>...]]
move <number>|-|+
- merge <number>
swap <number1>|<name1> [<number2>|<name2>]
+ merge <number>
unmerge [<number>|-all]
+ hide [<number>|<name> [<number>|<name>...]]
+ unhide [<number>|<name> [<number>|<name>...]]
renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>]
notify <level>
@@ -78,54 +80,56 @@ message: 離席メッセージ (メッセージが無い場合は、離席状態
get <property>
<number>|-|+|<name>
- list: バッファをリストアップ (引数無しの場合、このリストが表示されます)
- clear: バッファの内容を削除 (number はバッファ番号、マージバッファに対しては -merged、全てのバッファに対しては -all、何も無ければ現在のバッファ)
- move: リストにバッファを移動 (相対指定も可能、例えば -1); "-" = 最初のバッファ番号に移動、"+" = 最後のバッファ番号 + 1 に移動
- swap: 2 つのバッファを入れ替え (現在のバッファと引数で与えた番号/名称で指定されるバッファを入れ替える)
- merge: 現在のバッファを他のバッファにマージ (2 つのバッファのチャットエリアが一緒になります)
- (デフォルトでは ctrl-x でマージバッファの切り替え)
- unmerge: 同じ番号を持つ他のバッファとのマージを解除
-renumber: バッファを記憶 (weechat.look.buffer_auto_renumber オプションがオフの場合にのみ有効)
- close: バッファを閉じる (番号/範囲または名前は任意)
- notify: 現在のバッファの通知レベルを設定: このレベルでバッファがホットリストに追加されるかどうかを定義します:
- none: 通知しない
- highlight: ハイライトがあった場合のみ通知
- message: ユーザからのメッセージとハイライトがあった場合に通知
- all: 全てのメッセージを通知
- reset: デフォルトの値 (all) にリセット
-localvar: 現在のバッファのローカル変数を表示
- set: 現在のバッファのプロパティを設定
- get: 現在のバッファのプロパティを表示
- number: 番号でバッファ移動、可能なプレフィックス:
- '+': 相対移動、現在の番号に数を足す
- '-': 相対移動、現在の番号から数を引く
- '*': 番号に移動、オプション "weechat.look.jump_current_to_previous_buffer" が使われる
- -: 最初のバッファ番号に移動
- +: 最後のバッファ番号に移動
- name: バッファ名 (一部) でバッファに移動
-
-例:
- 現在のバッファの内容を消去:
+ list: list buffers (without argument, this list is displayed)
+ clear: clear buffer content (number for a buffer, -merged for merged buffers, -all for all buffers, or nothing for current buffer)
+ move: move buffer in the list (may be relative, for example -1); "-" = move to first buffer number, "+" = move to last buffer number + 1
+ swap: swap two buffers (swap with current buffer if only one number/name given)
+ merge: merge current buffer to another buffer (chat area will be mix of both buffers)
+ (by default ctrl-x switches between merged buffers)
+ unmerge: unmerge buffer from other buffers which have same number
+ hide: hide the buffer
+ unhide: unhide the buffer
+renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
+ close: close buffer (number/range or name is optional)
+ notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
+ none: never
+ highlight: for highlights only
+ message: for messages from users + highlights
+ all: all messages
+ reset: reset to default value (all)
+localvar: display local variables for current buffer
+ set: set a property for current buffer
+ get: display a property of current buffer
+ number: jump to buffer by number, possible prefix:
+ '+': relative jump, add number to current
+ '-': relative jump, sub number to current
+ '*': jump to number, using option "weechat.look.jump_current_to_previous_buffer"
+ -: jump to first buffer number
+ +: jump to last buffer number
+ name: jump to buffer by (partial) name
+
+Examples:
+ clear current buffer:
/buffer clear
- バッファを 5 番に移動:
+ move buffer to number 5:
/buffer move 5
- バッファ 1 番と 3 番を入れ替え:
+ swap buffer 1 with 3:
/buffer swap 1 3
- 現在のバッファと #weechat バッファを入れ替え:
+ swap buffer #weechat with current buffer:
/buffer swap #weechat
- コアバッファとマージ:
+ merge with core buffer:
/buffer merge 1
- バッファマージの解除:
+ unmerge buffer:
/buffer unmerge
- 現在のバッファを閉じる:
+ close current buffer:
/buffer close
- バッファ番号 5 から 7 を閉じる:
+ close buffers 5 to 7:
/buffer close 5-7
- #weechat バッファに移動:
+ jump to #weechat:
/buffer #weechat
- 次のバッファに移動:
+ jump to next buffer:
/buffer +1
- 最後のバッファ番号に移動:
+ jump to last buffer number:
/buffer +
----
diff --git a/doc/ja/weechat_plugin_api.ja.txt b/doc/ja/weechat_plugin_api.ja.txt
index 761de0efd..a7275dfa0 100644
--- a/doc/ja/weechat_plugin_api.ja.txt
+++ b/doc/ja/weechat_plugin_api.ja.txt
@@ -7958,6 +7958,16 @@ WeeChat とプラグインが送信するシグナルのリスト:
Pointer: バッファ |
バッファをクリア
+// TRANSLATION MISSING
+| weechat | buffer_hidden |
+ Pointer: buffer |
+ Buffer hidden
+
+// TRANSLATION MISSING
+| weechat | buffer_unhidden |
+ Pointer: buffer |
+ Buffer unhidden
+
| weechat | buffer_line_added +
_(WeeChat バージョン 0.3.7 以上で利用可)_ |
Pointer: 行 |
diff --git a/doc/pl/autogen/plugin_api/hdata.txt b/doc/pl/autogen/plugin_api/hdata.txt
index 116f37ded..d080c8daa 100644
--- a/doc/pl/autogen/plugin_api/hdata.txt
+++ b/doc/pl/autogen/plugin_api/hdata.txt
@@ -490,6 +490,7 @@
*** 'notify' (integer)
*** 'num_displayed' (integer)
*** 'active' (integer)
+*** 'hidden' (integer)
*** 'zoomed' (integer)
*** 'print_hooks_enabled' (integer)
*** 'day_change' (integer)
diff --git a/doc/pl/autogen/user/weechat_commands.txt b/doc/pl/autogen/user/weechat_commands.txt
index 7d032db0b..cb518fd29 100644
--- a/doc/pl/autogen/user/weechat_commands.txt
+++ b/doc/pl/autogen/user/weechat_commands.txt
@@ -65,11 +65,13 @@ Przykłady:
----
/buffer list
- clear [<number>|<name>|-merged|-all]
+ clear [<number>|<name>|-merged|-all [<number>|<name>...]]
move <number>|-|+
- merge <number>
swap <number1>|<name1> [<number2>|<name2>]
+ merge <number>
unmerge [<number>|-all]
+ hide [<number>|<name> [<number>|<name>...]]
+ unhide [<number>|<name> [<number>|<name>...]]
renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>]
notify <level>
@@ -85,6 +87,8 @@ Przykłady:
merge: merge current buffer to another buffer (chat area will be mix of both buffers)
(by default ctrl-x switches between merged buffers)
unmerge: unmerge buffer from other buffers which have same number
+ hide: hide the buffer
+ unhide: unhide the buffer
renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
close: close buffer (number/range or name is optional)
notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
diff --git a/po/cs.po b/po/cs.po
index 2fffcb23b..942662bf1 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-03-24 14:23+0100\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: cs\n"
@@ -193,6 +193,7 @@ msgstr ""
" %s%s%s: %s%s%s (podmínka: %s), %s, vyplňuje: %s(nahoře/dole)/%s(vlevo/"
"vpravo), %s: %s"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(skrytý)"
@@ -280,7 +281,7 @@ msgid "Buffers list:"
msgstr "Seznam bufferů:"
#, fuzzy, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr " %s[%s%d%s]%s (%s) %s%s%s (notifikace: %s)"
#, c-format
@@ -1085,11 +1086,12 @@ msgstr "řídit buffery"
#, fuzzy
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
"list || clear [<číslo>|-merged|-all] || move|merge <číslo> || unmerge "
"[<číslo>] || close [<n1>[-<n2>]] || notify <úroveň> || localvar || set "
@@ -1108,6 +1110,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -10618,18 +10622,3 @@ msgstr "%s%s: nemohu nastavit \"neblokovaci\" volbu na soket"
#, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s%s: vypršel časový limit \"%s\" pro %s"
-
-#, fuzzy
-#~ msgid ""
-#~ "hide channel key in channel modes (this will hide all channel modes "
-#~ "arguments if mode +k is set on channel)"
-#~ msgstr ""
-#~ "schovat klíč kanálu pokud jsou zobrazeny módy v \"buffer_name\" položce "
-#~ "panelu (toto schová všechny argumenty módů kanálu pokud je +k nastaveno "
-#~ "na kanálu)"
-
-#~ msgid "display nick modes in \"input_prompt\" bar item"
-#~ msgstr "zobrazovat módy přezdívky v položce pole \"input_prompt\""
-
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "Obdržen signál SIGHUP, znovunačítám konfigurační soubory"
diff --git a/po/de.po b/po/de.po
index 853ea8118..30ad292a6 100644
--- a/po/de.po
+++ b/po/de.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
"PO-Revision-Date: 2014-04-04 18:39+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <weechatter@arcor.de>\n"
@@ -45,11 +45,11 @@ msgid "max chars"
msgstr "maximale Zeichenanzahl"
msgid ""
-"a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)"
-"green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal "
-"color number or an alias; attributes are allowed before color (for text "
-"color only, not background): \"*\" for bold, \"!\" for reverse, \"/\" for "
-"italic, \"_\" for underline"
+"a WeeChat color name (default, black, (dark)gray, white, (light)red, "
+"(light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a "
+"terminal color number or an alias; attributes are allowed before color (for "
+"text color only, not background): \"*\" for bold, \"!\" for reverse, \"/\" "
+"for italic, \"_\" for underline"
msgstr ""
"ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, "
"(light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine "
@@ -198,6 +198,7 @@ msgstr ""
" %s%s%s: %s%s%s (Zustand: %s), %s, Füllstand: %s(oben/unten)/%s(links/"
"rechts), %s: %s"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(versteckt)"
@@ -287,8 +288,8 @@ msgstr ""
msgid "Buffers list:"
msgstr "Liste der vorhandenen Buffer:"
-#, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+#, fuzzy, c-format
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr " %s[%s%d%s]%s %s%s.%s%s%s (Benachrichtigung: %s)"
#, c-format
@@ -1095,12 +1096,14 @@ msgstr ""
msgid "manage buffers"
msgstr "Buffer verwalten"
+#, fuzzy
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
@@ -1108,6 +1111,7 @@ msgstr ""
"<name>] || notify <level> || localvar || set <property> <value> || get "
"<property> || <number>|-|+|<name>"
+#, fuzzy
msgid ""
" list: list buffers (without argument, this list is displayed)\n"
" clear: clear buffer content (number for a buffer, -merged for merged "
@@ -1120,6 +1124,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -5171,9 +5177,9 @@ msgid ""
"suggestions in all languages)"
msgstr ""
"legt die Anzahl an Vorschlägen, für ein falsch geschriebenes Wort, fest. Die "
-"Vorschläge werden mittels der Bar-Item \"aspell_suggest\", für die jeweilige"
-"(n) Sprache(n), die für den Buffer augewählt wurden, angezeigt (-1 = "
-"deaktiviert die Funktion, 0 = zeigt alle verfügbaren Vorschläge, für alle "
+"Vorschläge werden mittels der Bar-Item \"aspell_suggest\", für die "
+"jeweilige(n) Sprache(n), die für den Buffer augewählt wurden, angezeigt (-1 "
+"= deaktiviert die Funktion, 0 = zeigt alle verfügbaren Vorschläge, für alle "
"ausgewählten Sprachen, an)"
msgid ""
@@ -6184,8 +6190,8 @@ msgstr ""
"werden)\n"
" - Hostname/Port oder IP/Port (damit wird lediglich ein "
"TEMPORÄRER Server erstellt), Port 6667 wird standardmäßig verwendet\n"
-" - URL mit folgendem Format: irc[6][s]://[nickname[:password]@]"
-"irc.example.org[:port][/#channel1][,#channel2[...]]\n"
+" - URL mit folgendem Format: irc[6][s]://[nickname[:"
+"password]@]irc.example.org[:port][/#channel1][,#channel2[...]]\n"
" option: legt Option für den Server fest (die Boolean-Optionen können "
"weggelassen werden)\n"
" nooption: deaktiviert eine Boolean Option (Beispiel: -nossl)\n"
@@ -11331,8 +11337,8 @@ msgid ""
"Examples (you can also look at default triggers with /trigger listdefault):\n"
" add text attributes *bold*, _underline_ and /italic/ (only in user "
"messages):\n"
-" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==\\*"
-"(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:"
+" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"=="
+"\\*(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:"
"underline}$1${color:-underline}_== ==/(\\S+)/==/${color:italic}$1${color:-"
"italic}/\"\n"
" hide nicklist bar on small terminals:\n"
@@ -11422,8 +11428,8 @@ msgstr ""
"trigger listdefault\" anzeigen lassen):\n"
" fügt einer Nachricht die Textattribute *fett*, _unterstrichen_ und /"
"kursiv/ hinzu:\n"
-" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==\\*"
-"(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:"
+" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"=="
+"\\*(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:"
"underline}$1${color:-underline}_== ==/(\\S+)/==/${color:italic}$1${color:-"
"italic}/\"\n"
" verbirgt die Nicklist auf kleineren Terminals:\n"
diff --git a/po/es.po b/po/es.po
index dcb982839..1461e583d 100644
--- a/po/es.po
+++ b/po/es.po
@@ -22,8 +22,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-03-24 14:23+0100\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: es\n"
@@ -199,6 +199,7 @@ msgstr ""
" %s%s%s: %s%s%s (cond: %s), %s, llenado: %s(arriba/abajo)/%s(izquierda/"
"derecha), %s: %s"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(oculto)"
@@ -286,7 +287,7 @@ msgid "Buffers list:"
msgstr "Lista de buffers:"
#, fuzzy, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr " %s[%s%d%s]%s (%s) %s%s%s (aviso: %s)"
#, c-format
@@ -1089,11 +1090,12 @@ msgstr "gestionar los buffers"
#, fuzzy
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
"list || clear [<número>|<nombre>|-merged|-all] || move|merge <número> || "
"swap<número1>|<nombre1> [<número2>|<nombre2>] || unmerge [<número>|-all] || "
@@ -1113,6 +1115,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -10896,17 +10900,3 @@ msgstr "%s%s: no es posible configurar la opción \"nonblock\" para el socket"
#, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s"
-
-#~ msgid ""
-#~ "hide channel key in channel modes (this will hide all channel modes "
-#~ "arguments if mode +k is set on channel)"
-#~ msgstr ""
-#~ "ocultar la clave del canal en los modos de canal (esto ocultará todos los "
-#~ "argumentos de los modos si +k es usado en el canal)"
-
-#~ msgid "display nick modes in \"input_prompt\" bar item"
-#~ msgstr ""
-#~ "mostrar los modos del apodo en el elemento de barra \"input_prompt\""
-
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "Señal SIGHUP recibida, recargando archivos de configuración"
diff --git a/po/fr.po b/po/fr.po
index 3b8a89d29..2d7bd46fa 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: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-04-04 15:58+0200\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -190,6 +190,7 @@ msgstr ""
" %s%s%s: %s%s%s (cond: %s), %s, remplissage: %s(haut/bas)/%s(gauche/"
"droite), %s: %s"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(caché)"
@@ -279,8 +280,8 @@ msgid "Buffers list:"
msgstr "Liste des tampons:"
#, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
-msgstr " %s[%s%d%s]%s %s%s.%s%s%s (notification: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
+msgstr " %s[%s%d%s]%s %s%s.%s%s%s (notification: %s)%s%s"
#, c-format
msgid "%sError: incorrect buffer number"
@@ -1079,17 +1080,19 @@ msgid "manage buffers"
msgstr "gestion des tampons"
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
-"list || clear [<nombre>|<nom>|-merged|-all] || move <nombre>|-|+ || merge "
-"<nombre> || swap <nombre1>|<nom1> [<nombre2>|<nom2>] || unmerge [<nombre>|-"
-"all] || renumber <nombre1> [<nombre2> [<départ>]] || close [<n1>[-<n2>]|"
-"<nom>] || notify <niveau> || localvar || set <propriété> <valeur> || get "
-"<propriété> || <nombre>|<nom>"
+"list || clear [<nombre>|<nom>|-merged|-all [<nombre>|<nom>...]] || move "
+"<nombre>|-|+ || swap <nombre1>|<nom1> [<nombre2>|<nom2>] || merge <nombre> "
+"|| unmerge [<nombre>|-all] || hide [<nombre>|<nom> [<nombre>|<nom>...]] || "
+"unhide [<nombre>|<nom> [<nombre>|<nom>...]] || renumber <nombre1> [<nombre2> "
+"[<départ>]] || close [<n1>[-<n2>]|<nom>] || notify <niveau> || localvar || "
+"set <propriété> <valeur> || get <propriété> || <nombre>|<nom>"
msgid ""
" list: list buffers (without argument, this list is displayed)\n"
@@ -1103,6 +1106,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -1164,6 +1169,8 @@ msgstr ""
" (par défaut ctrl-x bascule entre les tampons mélangés)\n"
" unmerge: détacher le tampon courant des autres tampons portant le même "
"numéro\n"
+" hide: masquer le tampon\n"
+" unhide: démasquer le tampon\n"
"renumber: renuméroter des tampons (fonctionne seulement si l'option weechat."
"look.buffer_auto_renumber est désactivée)\n"
" close: fermer le tampon (nombre/intervalle ou nom optionnel)\n"
@@ -11735,19 +11742,3 @@ msgstr ""
#, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s%s: délai d'attente dépassé pour \"%s\" avec %s"
-
-#~ msgid ""
-#~ "hide channel key in channel modes (this will hide all channel modes "
-#~ "arguments if mode +k is set on channel)"
-#~ msgstr ""
-#~ "cacher la clé du canal (cela cachera tous les paramètres des modes du "
-#~ "canal si le mode +k est défini sur le canal)"
-
-#~ msgid "display nick modes in \"input_prompt\" bar item"
-#~ msgstr "affiche les modes du pseudo dans l'objet de barre \"input_prompt\""
-
-#~ msgid "Trigger monitor | Filter: %s"
-#~ msgstr "Moniteur de trigger | Filtre: %s"
-
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "Signal SIGHUP reçu, rechargement des fichiers de configuration"
diff --git a/po/hu.po b/po/hu.po
index e877f0b39..9a4e11e94 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-03-24 14:23+0100\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: hu\n"
@@ -193,6 +193,7 @@ msgid ""
"%s"
msgstr "%s %s%s%s/%s%s%s:%s %s%s%s mellőzése a következő(k)től: %s%s\n"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(rejtett)"
@@ -286,7 +287,7 @@ msgid "Buffers list:"
msgstr ""
#, fuzzy, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr "%s%s %s(%s%s%s)%s kilépett"
#, fuzzy, c-format
@@ -1064,11 +1065,12 @@ msgid "manage buffers"
msgstr "pufferek kezelése"
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
#, fuzzy
@@ -1084,6 +1086,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -10028,7 +10032,3 @@ msgstr "%s DCC: nem sikerült 'nonblock' opciót beállítani a csatornán\n"
#, fuzzy, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
-
-#, fuzzy
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "%s nem sikerült a konfigurációs fájlt elmenteni\n"
diff --git a/po/it.po b/po/it.po
index f6a012114..e15d7fb84 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-03-24 14:23+0100\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: it\n"
@@ -190,6 +190,7 @@ msgstr ""
" %s%s%s: %s%s%s (cond: %s), %s, riempimento: %s(alto/basso/%s(sinistra/"
"destra), %s: %s"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(nascosta)"
@@ -277,7 +278,7 @@ msgid "Buffers list:"
msgstr "Elenco buffer:"
#, fuzzy, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr " %s[%s%d%s]%s (%s) %s%s%s (notifica: %s)"
#, c-format
@@ -1065,11 +1066,12 @@ msgstr "gestione dei buffer"
#, fuzzy
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
"list || clear [<numero>|<nome>|-merged|-all] || move|merge <numero> || swap "
"<numero1>|<nome1> [<numero2>|<nome2>] || unmerge [<numero>|-all] || close "
@@ -1089,6 +1091,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -11061,16 +11065,3 @@ msgstr ""
#, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s%s: timeout per \"%s\" con %s"
-
-#~ msgid ""
-#~ "hide channel key in channel modes (this will hide all channel modes "
-#~ "arguments if mode +k is set on channel)"
-#~ msgstr ""
-#~ "nasconde la chiave del canale (l'opzione nasconde gli argomenti di tutte "
-#~ "le modalità canale se +k è impostato sul canale)"
-
-#~ msgid "display nick modes in \"input_prompt\" bar item"
-#~ msgstr "visualizza le modalità nick nell'elemento barra \"input_prompt\""
-
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "Ricevuto segnale SIGHUP, caricamento dei file di configurazione"
diff --git a/po/ja.po b/po/ja.po
index 35b8a4d0e..e0f992787 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-04-05 16:13+0900\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/translation_ja>\n"
"Language: ja\n"
@@ -40,11 +40,11 @@ msgid "max chars"
msgstr "最大文字数"
msgid ""
-"a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)"
-"green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal "
-"color number or an alias; attributes are allowed before color (for text "
-"color only, not background): \"*\" for bold, \"!\" for reverse, \"/\" for "
-"italic, \"_\" for underline"
+"a WeeChat color name (default, black, (dark)gray, white, (light)red, "
+"(light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a "
+"terminal color number or an alias; attributes are allowed before color (for "
+"text color only, not background): \"*\" for bold, \"!\" for reverse, \"/\" "
+"for italic, \"_\" for underline"
msgstr ""
"WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、"
"brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号ま"
@@ -186,6 +186,7 @@ msgid ""
"%s"
msgstr " %s%s%s: %s%s%s (cond: %s), %s, filling: %s(上/下)/%s(左/右), %s: %s"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(隠し)"
@@ -273,8 +274,8 @@ msgstr ""
msgid "Buffers list:"
msgstr "バッファリスト:"
-#, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+#, fuzzy, c-format
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr " %s[%s%d%s]%s %s%s.%s%s%s (通知: %s)"
#, c-format
@@ -1054,12 +1055,14 @@ msgstr ""
msgid "manage buffers"
msgstr "バッファの管理"
+#, fuzzy
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
@@ -1067,6 +1070,7 @@ msgstr ""
"<name>] || notify <level> || localvar || set <property> <value> || get "
"<property> || <number>|-|+|<name>"
+#, fuzzy
msgid ""
" list: list buffers (without argument, this list is displayed)\n"
" clear: clear buffer content (number for a buffer, -merged for merged "
@@ -1079,6 +1083,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -5793,8 +5799,8 @@ msgstr ""
" - 内部サーバ名 (/server add で作成されたもの、利用推奨)\n"
" - ホスト名/ポート番号、又は IP アドレス/ポート番号 (これは一時的"
"サーバを作る)、デフォルトのポート番号は 6667\n"
-" - 次のフォーマットに従う URL: irc[6][s]://[nickname[:password]@]"
-"irc.example.org[:port][/#channel1][,#channel2[...]]\n"
+" - 次のフォーマットに従う URL: irc[6][s]://[nickname[:"
+"password]@]irc.example.org[:port][/#channel1][,#channel2[...]]\n"
" option: サーバに関するオプション (ブール型オプションでは、value は無視さ"
"れる)\n"
" nooption: ブール型オプションを 'off' にする (例: -nossl)\n"
@@ -10664,8 +10670,8 @@ msgid ""
"Examples (you can also look at default triggers with /trigger listdefault):\n"
" add text attributes *bold*, _underline_ and /italic/ (only in user "
"messages):\n"
-" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==\\*"
-"(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:"
+" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"=="
+"\\*(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:"
"underline}$1${color:-underline}_== ==/(\\S+)/==/${color:italic}$1${color:-"
"italic}/\"\n"
" hide nicklist bar on small terminals:\n"
@@ -10738,8 +10744,8 @@ msgstr ""
"\n"
"例 (/trigger listdefault でデフォルトトリガを見ることができます):\n"
" テキスト属性 *太字*、_下線_、/イタリック/ を追加 (ユーザメッセージのみ):\n"
-" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==\\*"
-"(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:"
+" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"=="
+"\\*(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:"
"underline}$1${color:-underline}_== ==/(\\S+)/==/${color:italic}$1${color:-"
"italic}/\"\n"
" 狭い端末ではニックネームリストバーを隠す:\n"
@@ -11300,20 +11306,3 @@ msgstr "%s%s: ソケットにオプション \"nonblock\" を設定できませ
#, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s%s: \"%s\" のタイムアウト %s"
-
-#~ msgid ""
-#~ "hide channel key in channel modes (this will hide all channel modes "
-#~ "arguments if mode +k is set on channel)"
-#~ msgstr ""
-#~ "チャンネルモードに含まれるチャンネルキーを隠す (チャンネルにモード +k が設"
-#~ "定されていた場合、全てのチャンネルモード引数を隠す)"
-
-#~ msgid "display nick modes in \"input_prompt\" bar item"
-#~ msgstr "\"input_prompt\" バーアイテムではニックネームモードを表示"
-
-#, fuzzy
-#~ msgid "Trigger monitor | Filter: %s"
-#~ msgstr "トリガモニタ"
-
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "シグナル SIGHUP を受け取りました、設定ファイルを再読み込み中"
diff --git a/po/pl.po b/po/pl.po
index cbcf49160..b3a6cff99 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-03-24 14:23+0100\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: pl\n"
@@ -190,6 +190,7 @@ msgstr ""
" %s%s%s: %s%s%s (położenie: %s), %s, wyrównanie: %s(góra/dół)/%s(lewo/"
"prawo), %s: %s"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(ukryty)"
@@ -277,8 +278,8 @@ msgstr ""
msgid "Buffers list:"
msgstr "Lista buforów:"
-#, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+#, fuzzy, c-format
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr " %s[%s%d%s]%s %s%s.%s%s%s (powiadomienia: %s)"
#, c-format
@@ -1084,11 +1085,12 @@ msgstr "zarządzaj buforami"
#, fuzzy
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
"list || clear [<numer>|<nazwa>|-merged|-all] || move|merge <numer> || swap "
"<numer1>|<nazwa1> [<numer2>|<nazwa2>] || unmerge [<numer>|-all] || renumber "
@@ -1109,6 +1111,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -11329,16 +11333,3 @@ msgstr "%s%s: nie można ustawić opcji \"nonblock\" dla gniazda: błąd %d %s"
#, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s%s: przekroczono czas na \"%s\" z %s"
-
-#~ msgid ""
-#~ "hide channel key in channel modes (this will hide all channel modes "
-#~ "arguments if mode +k is set on channel)"
-#~ msgstr ""
-#~ "ukrywa klucz kanału w trybach kanału (ukryje to wszystkie atrybuty kanału "
-#~ "jeśli na kanale ustawione jest +k)"
-
-#~ msgid "display nick modes in \"input_prompt\" bar item"
-#~ msgstr "wyświetl atrybuty nicka w elemencie paska \"input_prompt\""
-
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "Otrzymano sygnał SIGHUP, przeładowuję pliki konfiguracyjne"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 877ca4e4e..7c82c370a 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-03-24 14:23+0100\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: pt_BR\n"
@@ -222,6 +222,7 @@ msgstr ""
" %s%s%s: %s%s%s (cond: %s), %s, preenchendo: %s(topo/baixo)/%s(esquerda/"
"direita), %s: %s"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(escondido)"
@@ -309,7 +310,7 @@ msgid "Buffers list:"
msgstr "Lista de buffers:"
#, fuzzy, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr " %s[%s%d%s]%s (%s) %s%s%s (notificar: %s)"
#, c-format
@@ -1107,11 +1108,12 @@ msgstr "gerenciar buffers"
#, fuzzy
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
"list || clear [<número>|<nome>|-merged|-all] || move|merge <número> || swap "
"<número1>|<nome1> [<número2>|<nome2>] || unmerge [<número>|-all] || close "
@@ -1132,6 +1134,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -10260,6 +10264,3 @@ msgstr "%s%s: não foi possível setar opção \"nonblock\" para o socket"
#, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s%s: tempo esgotado para \"%s\" com %s"
-
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "Sinal SIGHUP recebido, recarregando arquivos de configuração"
diff --git a/po/ru.po b/po/ru.po
index ae1374d15..86aa872cb 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-04-04 15:58+0200\n"
-"PO-Revision-Date: 2014-03-24 14:23+0100\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
+"PO-Revision-Date: 2014-04-05 16:12+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: ru\n"
@@ -202,6 +202,7 @@ msgid ""
"%s"
msgstr "%sна %s%s%s/%s%s%s:%s игнорирует %s%s%s с %s%s\n"
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr "(скрытый)"
@@ -295,7 +296,7 @@ msgid "Buffers list:"
msgstr "Список буферов:"
#, fuzzy, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr "%s%s %s(%s%s%s)%s вышел"
#, fuzzy, c-format
@@ -1085,11 +1086,12 @@ msgid "manage buffers"
msgstr "управление буферами"
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
#, fuzzy
@@ -1105,6 +1107,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -10049,7 +10053,3 @@ msgstr "%s DCC: не могу установить неблокирующий р
#, fuzzy, c-format
msgid "%s%s: timeout for \"%s\" with %s"
msgstr "%s нет аргумента для параметра \"%s\"\n"
-
-#, fuzzy
-#~ msgid "Signal SIGHUP received, reloading configuration files"
-#~ msgstr "%s не могу сохранить конфигурационный файл\n"
diff --git a/po/tr.po b/po/tr.po
index 6ff70d684..9a0a4c3ac 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: 2014-04-04 15:58+0200\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
"PO-Revision-Date: 2014-03-24 14:23+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -163,6 +163,7 @@ msgid ""
"%s"
msgstr ""
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr ""
@@ -250,7 +251,7 @@ msgid "Buffers list:"
msgstr ""
#, fuzzy, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr " %s[%s%d%s]%s (%s) %s%s%s (notify: %s)"
#, c-format
@@ -957,11 +958,12 @@ msgid "manage buffers"
msgstr ""
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
msgid ""
@@ -976,6 +978,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
diff --git a/po/weechat.pot b/po/weechat.pot
index 22aaad02b..4b6e3e452 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: 2014-04-04 15:58+0200\n"
+"POT-Creation-Date: 2014-04-05 16:09+0200\n"
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -163,6 +163,7 @@ msgid ""
"%s"
msgstr ""
+#. TRANSLATORS: "hidden" is displayed in list of buffers
msgid "(hidden)"
msgstr ""
@@ -250,7 +251,7 @@ msgid "Buffers list:"
msgstr ""
#, c-format
-msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"
+msgid " %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"
msgstr ""
#, c-format
@@ -964,11 +965,12 @@ msgid "manage buffers"
msgstr ""
msgid ""
-"list || clear [<number>|<name>|-merged|-all] || move <number>|-|+ || merge "
-"<number> || swap <number1>|<name1> [<number2>|<name2>] || unmerge [<number>|-"
-"all] || renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|"
-"<name>] || notify <level> || localvar || set <property> <value> || get "
-"<property> || <number>|-|+|<name>"
+"list || clear [<number>|<name>|-merged|-all [<number>|<name>...]] || move "
+"<number>|-|+ || swap <number1>|<name1> [<number2>|<name2>] || merge <number> "
+"|| unmerge [<number>|-all] || hide [<number>|<name> [<number>|<name>...]] || "
+"unhide [<number>|<name> [<number>|<name>...]] || renumber [<number1> "
+"[<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || notify <level> || "
+"localvar || set <property> <value> || get <property> || <number>|-|+|<name>"
msgstr ""
msgid ""
@@ -983,6 +985,8 @@ msgid ""
"both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+" hide: hide the buffer\n"
+" unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 8e7c9bb0e..8872a824c 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -562,7 +562,7 @@ COMMAND_CALLBACK(buffer)
ptr_buffer = ptr_buffer->next_buffer)
{
gui_chat_printf (NULL,
- _(" %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)"),
+ _(" %s[%s%d%s]%s %s%s.%s%s%s (notify: %s)%s%s"),
GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS),
GUI_COLOR(GUI_COLOR_CHAT),
ptr_buffer->number,
@@ -573,13 +573,16 @@ COMMAND_CALLBACK(buffer)
GUI_COLOR(GUI_COLOR_CHAT_BUFFER),
ptr_buffer->name,
GUI_COLOR(GUI_COLOR_CHAT),
- gui_buffer_notify_string[ptr_buffer->notify]);
+ gui_buffer_notify_string[ptr_buffer->notify],
+ (ptr_buffer->hidden) ? " " : "",
+ /* TRANSLATORS: "hidden" is displayed in list of buffers */
+ (ptr_buffer->hidden) ? _("(hidden)") : "");
}
return WEECHAT_RC_OK;
}
- /* clear content of buffer */
+ /* clear content of buffer(s) */
if (string_strcasecmp (argv[1], "clear") == 0)
{
if (argc > 2)
@@ -762,6 +765,72 @@ COMMAND_CALLBACK(buffer)
return WEECHAT_RC_OK;
}
+ /* hide buffer(s) */
+ if (string_strcasecmp (argv[1], "hide") == 0)
+ {
+ if (argc > 2)
+ {
+ for (i = 2; i < argc; i++)
+ {
+ ptr_buffer = gui_buffer_search_by_number_or_name (argv[i]);
+ if (ptr_buffer)
+ {
+ number = strtol (argv[2], &error, 10);
+ if (error && !error[0])
+ {
+ for (ptr_buffer2 = gui_buffers; ptr_buffer2;
+ ptr_buffer2 = ptr_buffer2->next_buffer)
+ {
+ if (ptr_buffer2->number == ptr_buffer->number)
+ {
+ gui_buffer_hide (ptr_buffer2);
+ }
+ }
+ }
+ else
+ gui_buffer_hide (ptr_buffer);
+ }
+ }
+ }
+ else
+ gui_buffer_hide (buffer);
+
+ return WEECHAT_RC_OK;
+ }
+
+ /* unhide buffer(s) */
+ if (string_strcasecmp (argv[1], "unhide") == 0)
+ {
+ if (argc > 2)
+ {
+ for (i = 2; i < argc; i++)
+ {
+ ptr_buffer = gui_buffer_search_by_number_or_name (argv[i]);
+ if (ptr_buffer)
+ {
+ number = strtol (argv[2], &error, 10);
+ if (error && !error[0])
+ {
+ for (ptr_buffer2 = gui_buffers; ptr_buffer2;
+ ptr_buffer2 = ptr_buffer2->next_buffer)
+ {
+ if (ptr_buffer2->number == ptr_buffer->number)
+ {
+ gui_buffer_unhide (ptr_buffer2);
+ }
+ }
+ }
+ else
+ gui_buffer_unhide (ptr_buffer);
+ }
+ }
+ }
+ else
+ gui_buffer_unhide (buffer);
+
+ return WEECHAT_RC_OK;
+ }
+
/* renumber buffers */
if (string_strcasecmp (argv[1], "renumber") == 0)
{
@@ -1016,8 +1085,16 @@ COMMAND_CALLBACK(buffer)
{
if (strcmp (argv[1], "-") == 0)
{
+ /* search first non-hidden buffer */
+ for (ptr_buffer = gui_buffers; ptr_buffer;
+ ptr_buffer = ptr_buffer->next_buffer)
+ {
+ if (!ptr_buffer->hidden)
+ break;
+ }
gui_buffer_switch_by_number (gui_current_window,
- gui_buffers->number);
+ (ptr_buffer) ?
+ ptr_buffer->number : gui_buffers->number);
}
else
{
@@ -1038,19 +1115,26 @@ COMMAND_CALLBACK(buffer)
if (ptr_buffer == gui_current_window->buffer)
break;
- if ((ptr_buffer->number != gui_current_window->buffer->number)
- && (ptr_buffer->number != prev_number))
+ /* skip hidden buffers */
+ if (!ptr_buffer->hidden)
{
- /* increase count each time we discover a different number */
- count++;
- if (count == number)
+ if ((ptr_buffer->number != gui_current_window->buffer->number)
+ && (ptr_buffer->number != prev_number))
{
- gui_buffer_switch_by_number (gui_current_window,
- ptr_buffer->number);
- break;
+ /*
+ * increase count each time we discover a different
+ * number
+ */
+ count++;
+ if (count == number)
+ {
+ gui_buffer_switch_by_number (gui_current_window,
+ ptr_buffer->number);
+ break;
+ }
}
+ prev_number = ptr_buffer->number;
}
- prev_number = ptr_buffer->number;
}
}
else
@@ -1070,8 +1154,16 @@ COMMAND_CALLBACK(buffer)
{
if (strcmp (argv[1], "+") == 0)
{
+ /* search last non-hidden buffer */
+ for (ptr_buffer = last_gui_buffer; ptr_buffer;
+ ptr_buffer = ptr_buffer->prev_buffer)
+ {
+ if (!ptr_buffer->hidden)
+ break;
+ }
gui_buffer_switch_by_number (gui_current_window,
- last_gui_buffer->number);
+ (ptr_buffer) ?
+ ptr_buffer->number : last_gui_buffer->number);
}
else
{
@@ -1092,19 +1184,26 @@ COMMAND_CALLBACK(buffer)
if (ptr_buffer == gui_current_window->buffer)
break;
- if ((ptr_buffer->number != gui_current_window->buffer->number)
- && (ptr_buffer->number != prev_number))
+ /* skip hidden buffers */
+ if (!ptr_buffer->hidden)
{
- /* increase count each time we discover a different number */
- count++;
- if (count == number)
+ if ((ptr_buffer->number != gui_current_window->buffer->number)
+ && (ptr_buffer->number != prev_number))
{
- gui_buffer_switch_by_number (gui_current_window,
- ptr_buffer->number);
- break;
+ /*
+ * increase count each time we discover a different
+ * number
+ */
+ count++;
+ if (count == number)
+ {
+ gui_buffer_switch_by_number (gui_current_window,
+ ptr_buffer->number);
+ break;
+ }
}
+ prev_number = ptr_buffer->number;
}
- prev_number = ptr_buffer->number;
}
}
else
@@ -6643,11 +6742,13 @@ command_init ()
NULL, "buffer",
N_("manage buffers"),
N_("list"
- " || clear [<number>|<name>|-merged|-all]"
+ " || clear [<number>|<name>|-merged|-all [<number>|<name>...]]"
" || move <number>|-|+"
- " || merge <number>"
" || swap <number1>|<name1> [<number2>|<name2>]"
+ " || merge <number>"
" || unmerge [<number>|-all]"
+ " || hide [<number>|<name> [<number>|<name>...]]"
+ " || unhide [<number>|<name> [<number>|<name>...]]"
" || renumber [<number1> [<number2> [<start>]]]"
" || close [<n1>[-<n2>]|<name>]"
" || notify <level>"
@@ -6667,6 +6768,8 @@ command_init ()
"be mix of both buffers)\n"
" (by default ctrl-x switches between merged buffers)\n"
" unmerge: unmerge buffer from other buffers which have same number\n"
+ " hide: hide the buffer\n"
+ " unhide: unhide the buffer\n"
"renumber: renumber buffers (works only if option weechat.look."
"buffer_auto_renumber is off)\n"
" close: close buffer (number/range or name is optional)\n"
@@ -6718,6 +6821,8 @@ command_init ()
" || swap %(buffers_numbers)"
" || merge %(buffers_numbers)"
" || unmerge %(buffers_numbers)|-all"
+ " || hide %(buffers_numbers)|%(buffers_plugins_names)|%*"
+ " || unhide %(buffers_numbers)|%(buffers_plugins_names)|%*"
" || renumber %(buffers_numbers) %(buffers_numbers) %(buffers_numbers)"
" || close %(buffers_plugins_names)"
" || list"
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index 2396fd728..b9d5417b3 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -472,6 +472,16 @@ upgrade_weechat_read_cb (void *data,
infolist_integer (infolist, "type");
upgrade_current_buffer->notify =
infolist_integer (infolist, "notify");
+ /* "hidden" is in WeeChat >= 0.4.4 */
+ if (infolist_search_var (infolist, "hidden"))
+ {
+ upgrade_current_buffer->hidden =
+ infolist_integer (infolist, "hidden");
+ }
+ else
+ {
+ upgrade_current_buffer->hidden = 0;
+ }
if (infolist_search_var (infolist, "day_change"))
{
upgrade_current_buffer->day_change =
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 44fc1b539..5413e29a3 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -77,14 +77,15 @@ char *gui_buffer_notify_string[GUI_BUFFER_NUM_NOTIFY] =
char *gui_buffer_properties_get_integer[] =
{ "number", "layout_number", "layout_number_merge_order", "type", "notify",
- "num_displayed", "active", "zoomed", "print_hooks_enabled", "day_change",
- "clear", "filter", "lines_hidden", "prefix_max_length", "time_for_each_line",
- "nicklist", "nicklist_case_sensitive", "nicklist_max_length",
- "nicklist_display_groups", "nicklist_count", "nicklist_groups_count",
- "nicklist_nicks_count", "nicklist_visible_count", "input",
- "input_get_unknown_commands", "input_size", "input_length", "input_pos",
- "input_1st_display", "num_history", "text_search", "text_search_exact",
- "text_search_regex", "text_search_where", "text_search_found",
+ "num_displayed", "active", "hidden", "zoomed", "print_hooks_enabled",
+ "day_change", "clear", "filter", "lines_hidden", "prefix_max_length",
+ "time_for_each_line", "nicklist", "nicklist_case_sensitive",
+ "nicklist_max_length", "nicklist_display_groups", "nicklist_count",
+ "nicklist_groups_count", "nicklist_nicks_count", "nicklist_visible_count",
+ "input", "input_get_unknown_commands", "input_size", "input_length",
+ "input_pos", "input_1st_display", "num_history", "text_search",
+ "text_search_exact", "text_search_regex", "text_search_where",
+ "text_search_found",
NULL
};
char *gui_buffer_properties_get_string[] =
@@ -98,8 +99,8 @@ char *gui_buffer_properties_get_pointer[] =
NULL
};
char *gui_buffer_properties_set[] =
-{ "hotlist", "unread", "display", "print_hooks_enabled", "day_change", "clear",
- "filter", "number", "name", "short_name", "type", "notify", "title",
+{ "hotlist", "unread", "display", "hidden", "print_hooks_enabled", "day_change",
+ "clear", "filter", "number", "name", "short_name", "type", "notify", "title",
"time_for_each_line", "nicklist", "nicklist_case_sensitive",
"nicklist_display_groups", "highlight_words", "highlight_words_add",
"highlight_words_del", "highlight_regex", "highlight_tags_restrict",
@@ -592,6 +593,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin,
new_buffer->notify = CONFIG_INTEGER(config_look_buffer_notify_default);
new_buffer->num_displayed = 0;
new_buffer->active = 1;
+ new_buffer->hidden = 0;
new_buffer->zoomed = 0;
new_buffer->print_hooks_enabled = 1;
new_buffer->day_change = 1;
@@ -981,6 +983,8 @@ gui_buffer_get_integer (struct t_gui_buffer *buffer, const char *property)
return buffer->num_displayed;
else if (string_strcasecmp (property, "active") == 0)
return buffer->active;
+ else if (string_strcasecmp (property, "hidden") == 0)
+ return buffer->hidden;
else if (string_strcasecmp (property, "zoomed") == 0)
return buffer->zoomed;
else if (string_strcasecmp (property, "print_hooks_enabled") == 0)
@@ -1753,6 +1757,18 @@ gui_buffer_set (struct t_gui_buffer *buffer, const char *property,
(string_strcasecmp (value, "auto") == 0) ?
0 : 1);
}
+ else if (string_strcasecmp (property, "hidden") == 0)
+ {
+ error = NULL;
+ number = strtol (value, &error, 10);
+ if (error && !error[0])
+ {
+ if (number)
+ gui_buffer_hide (buffer);
+ else
+ gui_buffer_unhide (buffer);
+ }
+ }
else if (string_strcasecmp (property, "print_hooks_enabled") == 0)
{
error = NULL;
@@ -2512,7 +2528,9 @@ gui_buffer_close (struct t_gui_buffer *buffer)
/* first unmerge buffer if it is merged to at least one other buffer */
if (gui_buffer_count_merged_buffers (buffer->number) > 1)
{
- ptr_back_to_buffer = gui_buffer_get_next_active_buffer (buffer);
+ ptr_back_to_buffer = gui_buffer_get_next_active_buffer (buffer, 0);
+ if (!ptr_back_to_buffer)
+ ptr_back_to_buffer = gui_buffer_get_next_active_buffer (buffer, 1);
gui_buffer_unmerge (buffer, last_gui_buffer->number + 1);
}
@@ -2763,56 +2781,82 @@ gui_buffer_set_active_buffer (struct t_gui_buffer *buffer)
/*
* Gets next active buffer (when many buffers are merged).
+ *
+ * If "allow_hidden_buffer" == 1, an hidden buffer can be returned.
+ * Otherwise an hidden buffer is never returned (if all other merged buffers are
+ * hidden, then NULL is returned).
*/
struct t_gui_buffer *
-gui_buffer_get_next_active_buffer (struct t_gui_buffer *buffer)
+gui_buffer_get_next_active_buffer (struct t_gui_buffer *buffer,
+ int allow_hidden_buffer)
{
struct t_gui_buffer *ptr_buffer;
- if (buffer->next_buffer
- && (buffer->next_buffer->number == buffer->number))
- return buffer->next_buffer;
- else
+ /* search after buffer */
+ for (ptr_buffer = buffer->next_buffer; ptr_buffer;
+ ptr_buffer = ptr_buffer->next_buffer)
{
- for (ptr_buffer = gui_buffers; ptr_buffer;
- ptr_buffer = ptr_buffer->next_buffer)
+ if (ptr_buffer->number != buffer->number)
+ break;
+ if (allow_hidden_buffer || !ptr_buffer->hidden)
+ return ptr_buffer;
+ }
+
+ /* search before buffer */
+ for (ptr_buffer = gui_buffers; ptr_buffer;
+ ptr_buffer = ptr_buffer->next_buffer)
+ {
+ if (ptr_buffer == buffer)
+ break;
+ if ((ptr_buffer->number == buffer->number)
+ && (allow_hidden_buffer || !ptr_buffer->hidden))
{
- if ((ptr_buffer != buffer)
- && (ptr_buffer->number == buffer->number))
- {
- return ptr_buffer;
- }
+ return ptr_buffer;
}
}
- return buffer;
+
+ return NULL;
}
/*
* Gets previous active buffer (when many buffers are merged).
+ *
+ * If "allow_hidden_buffer" == 1, an hidden buffer can be returned.
+ * Otherwise an hidden buffer is never returned (if all other merged buffers are
+ * hidden, then NULL is returned).
*/
struct t_gui_buffer *
-gui_buffer_get_previous_active_buffer (struct t_gui_buffer *buffer)
+gui_buffer_get_previous_active_buffer (struct t_gui_buffer *buffer,
+ int allow_hidden_buffer)
{
struct t_gui_buffer *ptr_buffer;
- if (buffer->prev_buffer
- && (buffer->prev_buffer->number == buffer->number))
- return buffer->prev_buffer;
- else
+ /* search before buffer */
+ for (ptr_buffer = buffer->prev_buffer; ptr_buffer;
+ ptr_buffer = ptr_buffer->prev_buffer)
+ {
+ if (ptr_buffer->number != buffer->number)
+ break;
+ if (allow_hidden_buffer || !ptr_buffer->hidden)
+ return ptr_buffer;
+ }
+
+ /* search after buffer */
+ for (ptr_buffer = last_gui_buffer; ptr_buffer;
+ ptr_buffer = ptr_buffer->prev_buffer)
{
- for (ptr_buffer = last_gui_buffer; ptr_buffer;
- ptr_buffer = ptr_buffer->prev_buffer)
+ if (ptr_buffer == buffer)
+ break;
+ if ((ptr_buffer->number == buffer->number)
+ && (allow_hidden_buffer || !ptr_buffer->hidden))
{
- if ((ptr_buffer != buffer)
- && (ptr_buffer->number == buffer->number))
- {
- return ptr_buffer;
- }
+ return ptr_buffer;
}
}
- return buffer;
+
+ return NULL;
}
/*
@@ -3308,7 +3352,9 @@ gui_buffer_unmerge (struct t_gui_buffer *buffer, int number)
else
{
/* remove this buffer from mixed_lines, but keep other buffers merged */
- ptr_new_active_buffer = gui_buffer_get_next_active_buffer (buffer);
+ ptr_new_active_buffer = gui_buffer_get_next_active_buffer (buffer, 0);
+ if (!ptr_new_active_buffer)
+ ptr_new_active_buffer = gui_buffer_get_next_active_buffer (buffer, 1);
if (ptr_new_active_buffer)
gui_buffer_set_active_buffer (ptr_new_active_buffer);
gui_line_mixed_free_buffer (buffer);
@@ -3405,6 +3451,38 @@ gui_buffer_unmerge_all ()
}
/*
+ * Hides a buffer.
+ */
+
+void
+gui_buffer_hide (struct t_gui_buffer *buffer)
+{
+ if (!buffer || buffer->hidden)
+ return;
+
+ buffer->hidden = 1;
+
+ (void) hook_signal_send ("buffer_hidden",
+ WEECHAT_HOOK_SIGNAL_POINTER, buffer);
+}
+
+/*
+ * Unhides a buffer.
+ */
+
+void
+gui_buffer_unhide (struct t_gui_buffer *buffer)
+{
+ if (!buffer || !buffer->hidden)
+ return;
+
+ buffer->hidden = 0;
+
+ (void) hook_signal_send ("buffer_unhidden",
+ WEECHAT_HOOK_SIGNAL_POINTER, buffer);
+}
+
+/*
* Sorts buffers by layout number.
*/
@@ -3846,6 +3924,7 @@ gui_buffer_hdata_buffer_cb (void *data, const char *hdata_name)
HDATA_VAR(struct t_gui_buffer, notify, INTEGER, 0, NULL, NULL);
HDATA_VAR(struct t_gui_buffer, num_displayed, INTEGER, 0, NULL, NULL);
HDATA_VAR(struct t_gui_buffer, active, INTEGER, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, hidden, INTEGER, 0, NULL, NULL);
HDATA_VAR(struct t_gui_buffer, zoomed, INTEGER, 0, NULL, NULL);
HDATA_VAR(struct t_gui_buffer, print_hooks_enabled, INTEGER, 0, NULL, NULL);
HDATA_VAR(struct t_gui_buffer, day_change, INTEGER, 0, NULL, NULL);
@@ -4023,6 +4102,8 @@ gui_buffer_add_to_infolist (struct t_infolist *infolist,
return 0;
if (!infolist_new_var_integer (ptr_item, "active", buffer->active))
return 0;
+ if (!infolist_new_var_integer (ptr_item, "hidden", buffer->hidden))
+ return 0;
if (!infolist_new_var_integer (ptr_item, "zoomed", buffer->zoomed))
return 0;
if (!infolist_new_var_integer (ptr_item, "print_hooks_enabled", buffer->print_hooks_enabled))
@@ -4237,6 +4318,7 @@ gui_buffer_print_log ()
log_printf (" notify. . . . . . . . . : %d", ptr_buffer->notify);
log_printf (" num_displayed . . . . . : %d", ptr_buffer->num_displayed);
log_printf (" active. . . . . . . . . : %d", ptr_buffer->active);
+ log_printf (" hidden. . . . . . . . . : %d", ptr_buffer->hidden);
log_printf (" zoomed. . . . . . . . . : %d", ptr_buffer->zoomed);
log_printf (" print_hooks_enabled . . : %d", ptr_buffer->print_hooks_enabled);
log_printf (" day_change. . . . . . . : %d", ptr_buffer->day_change);
diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h
index 4c54c1c74..a9a55f295 100644
--- a/src/gui/gui-buffer.h
+++ b/src/gui/gui-buffer.h
@@ -96,6 +96,7 @@ struct t_gui_buffer
int active; /* 0 = buffer merged and not active */
/* 1 = active (merged or not) */
/* 2 = the only active (merged) */
+ int hidden; /* 1 = buffer hidden */
int zoomed; /* 1 if a merged buffer is zoomed */
/* (it can be another buffer) */
int print_hooks_enabled; /* 1 if print hooks are enabled */
@@ -303,8 +304,10 @@ extern void gui_buffer_close (struct t_gui_buffer *buffer);
extern void gui_buffer_switch_by_number (struct t_gui_window *window,
int number);
extern void gui_buffer_set_active_buffer (struct t_gui_buffer *buffer);
-extern struct t_gui_buffer *gui_buffer_get_next_active_buffer (struct t_gui_buffer *buffer);
-extern struct t_gui_buffer *gui_buffer_get_previous_active_buffer (struct t_gui_buffer *buffer);
+extern struct t_gui_buffer *gui_buffer_get_next_active_buffer (struct t_gui_buffer *buffer,
+ int allow_hidden_buffer);
+extern struct t_gui_buffer *gui_buffer_get_previous_active_buffer (struct t_gui_buffer *buffer,
+ int allow_hidden_buffer);
extern void gui_buffer_renumber (int number1, int number2, int start_number);
extern void gui_buffer_move_to_number (struct t_gui_buffer *buffer, int number);
extern void gui_buffer_swap (int number1, int number2);
@@ -312,6 +315,8 @@ extern void gui_buffer_merge (struct t_gui_buffer *buffer,
struct t_gui_buffer *target_buffer);
extern void gui_buffer_unmerge (struct t_gui_buffer *buffer, int number);
extern void gui_buffer_unmerge_all ();
+extern void gui_buffer_hide (struct t_gui_buffer *buffer);
+extern void gui_buffer_unhide (struct t_gui_buffer *buffer);
extern void gui_buffer_sort_by_layout_number ();
extern void gui_buffer_undo_snap (struct t_gui_buffer *buffer);
extern void gui_buffer_undo_snap_free (struct t_gui_buffer *buffer);
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c
index fa49eafef..6e356da96 100644
--- a/src/gui/gui-input.c
+++ b/src/gui/gui-input.c
@@ -1578,7 +1578,7 @@ gui_input_switch_active_buffer (struct t_gui_buffer *buffer)
struct t_gui_buffer *ptr_buffer;
struct t_gui_window *window;
- ptr_buffer = gui_buffer_get_next_active_buffer (buffer);
+ ptr_buffer = gui_buffer_get_next_active_buffer (buffer, 0);
if (ptr_buffer)
{
gui_buffer_set_active_buffer (ptr_buffer);
@@ -1598,7 +1598,7 @@ gui_input_switch_active_buffer_previous (struct t_gui_buffer *buffer)
struct t_gui_buffer *ptr_buffer;
struct t_gui_window *window;
- ptr_buffer = gui_buffer_get_previous_active_buffer (buffer);
+ ptr_buffer = gui_buffer_get_previous_active_buffer (buffer, 0);
if (ptr_buffer)
{
gui_buffer_set_active_buffer (ptr_buffer);