diff options
-rw-r--r-- | doc/de/autogen/user/weechat_commands.txt | 4 | ||||
-rw-r--r-- | doc/en/autogen/user/weechat_commands.txt | 4 | ||||
-rw-r--r-- | doc/fr/autogen/user/weechat_commands.txt | 4 | ||||
-rw-r--r-- | doc/it/autogen/user/weechat_commands.txt | 4 | ||||
-rw-r--r-- | doc/ja/autogen/user/weechat_commands.txt | 4 | ||||
-rw-r--r-- | doc/pl/autogen/user/weechat_commands.txt | 4 | ||||
-rw-r--r-- | po/cs.po | 11 | ||||
-rw-r--r-- | po/de.po | 11 | ||||
-rw-r--r-- | po/es.po | 11 | ||||
-rw-r--r-- | po/fr.po | 21 | ||||
-rw-r--r-- | po/hu.po | 11 | ||||
-rw-r--r-- | po/it.po | 11 | ||||
-rw-r--r-- | po/ja.po | 11 | ||||
-rw-r--r-- | po/pl.po | 11 | ||||
-rw-r--r-- | po/pt_BR.po | 11 | ||||
-rw-r--r-- | po/ru.po | 11 | ||||
-rw-r--r-- | po/tr.po | 11 | ||||
-rw-r--r-- | po/weechat.pot | 11 | ||||
-rw-r--r-- | src/core/wee-command.c | 64 | ||||
-rw-r--r-- | src/gui/gui-buffer.c | 32 | ||||
-rw-r--r-- | src/gui/gui-buffer.h | 2 |
21 files changed, 161 insertions, 103 deletions
diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt index 253926f2d..4c9a6d3b8 100644 --- a/doc/de/autogen/user/weechat_commands.txt +++ b/doc/de/autogen/user/weechat_commands.txt @@ -70,8 +70,8 @@ Beispiele: swap <number1>|<name1> [<number2>|<name2>] merge <number> unmerge [<number>|-all] - hide [<number>|<name> [<number>|<name>...]] - unhide [<number>|<name> [<number>|<name>...]] + hide [<number>|<name>|-all [<number>|<name>...]] + unhide [<number>|<name>|-all [<number>|<name>...]] renumber [<number1> [<number2> [<start>]]] close [<n1>[-<n2>]|<name>] notify <level> diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt index 66bc4ce3b..085363895 100644 --- a/doc/en/autogen/user/weechat_commands.txt +++ b/doc/en/autogen/user/weechat_commands.txt @@ -70,8 +70,8 @@ Examples: swap <number1>|<name1> [<number2>|<name2>] merge <number> unmerge [<number>|-all] - hide [<number>|<name> [<number>|<name>...]] - unhide [<number>|<name> [<number>|<name>...]] + hide [<number>|<name>|-all [<number>|<name>...]] + unhide [<number>|<name>|-all [<number>|<name>...]] renumber [<number1> [<number2> [<start>]]] close [<n1>[-<n2>]|<name>] notify <level> diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt index 4b4827a5e..285dae312 100644 --- a/doc/fr/autogen/user/weechat_commands.txt +++ b/doc/fr/autogen/user/weechat_commands.txt @@ -70,8 +70,8 @@ Exemples: swap <nombre1>|<nom1> [<nombre2>|<nom2>] merge <nombre> unmerge [<nombre>|-all] - hide [<nombre>|<nom> [<nombre>|<nom>...]] - unhide [<nombre>|<nom> [<nombre>|<nom>...]] + hide [<nombre>|<nom>|-all [<nombre>|<nom>...]] + unhide [<nombre>|<nom>|-all [<nombre>|<nom>...]] renumber <nombre1> [<nombre2> [<départ>]] close [<n1>[-<n2>]|<nom>] notify <niveau> diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt index 2e2ac62cf..bf6f340e5 100644 --- a/doc/it/autogen/user/weechat_commands.txt +++ b/doc/it/autogen/user/weechat_commands.txt @@ -70,8 +70,8 @@ Examples: swap <number1>|<name1> [<number2>|<name2>] merge <number> unmerge [<number>|-all] - hide [<number>|<name> [<number>|<name>...]] - unhide [<number>|<name> [<number>|<name>...]] + hide [<number>|<name>|-all [<number>|<name>...]] + unhide [<number>|<name>|-all [<number>|<name>...]] renumber [<number1> [<number2> [<start>]]] close [<n1>[-<n2>]|<name>] notify <level> diff --git a/doc/ja/autogen/user/weechat_commands.txt b/doc/ja/autogen/user/weechat_commands.txt index 01b1b8d49..b5bb1f18f 100644 --- a/doc/ja/autogen/user/weechat_commands.txt +++ b/doc/ja/autogen/user/weechat_commands.txt @@ -70,8 +70,8 @@ message: 離席メッセージ (メッセージが無い場合は、離席状態 swap <number1>|<name1> [<number2>|<name2>] merge <number> unmerge [<number>|-all] - hide [<number>|<name> [<number>|<name>...]] - unhide [<number>|<name> [<number>|<name>...]] + hide [<number>|<name>|-all [<number>|<name>...]] + unhide [<number>|<name>|-all [<number>|<name>...]] renumber [<number1> [<number2> [<start>]]] close [<n1>[-<n2>]|<name>] notify <level> diff --git a/doc/pl/autogen/user/weechat_commands.txt b/doc/pl/autogen/user/weechat_commands.txt index cb518fd29..f786c4d59 100644 --- a/doc/pl/autogen/user/weechat_commands.txt +++ b/doc/pl/autogen/user/weechat_commands.txt @@ -70,8 +70,8 @@ Przykłady: swap <number1>|<name1> [<number2>|<name2>] merge <number> unmerge [<number>|-all] - hide [<number>|<name> [<number>|<name>...]] - unhide [<number>|<name> [<number>|<name>...]] + hide [<number>|<name>|-all [<number>|<name>...]] + unhide [<number>|<name>|-all [<number>|<name>...]] renumber [<number1> [<number2> [<start>]]] close [<n1>[-<n2>]|<name>] notify <level> @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1088,10 +1088,11 @@ msgstr "řídit buffery" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<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 " @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1100,10 +1100,11 @@ msgstr "Buffer verwalten" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<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>|-" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1092,10 +1092,11 @@ msgstr "gestionar los buffers" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<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] || " @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" -"PO-Revision-Date: 2014-04-05 16:12+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+0200\n" +"PO-Revision-Date: 2014-04-05 18:37+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -1082,17 +1082,18 @@ msgstr "gestion des tampons" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<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 [<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>" +"|| unmerge [<nombre>|-all] || hide [<nombre>|<nom>|-all [<nombre>|<nom>...]] " +"|| unhide [<nombre>|<nom>|-all [<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" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1067,10 +1067,11 @@ msgstr "pufferek kezelése" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<number>|<name>...]] || " +"renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || " +"notify <level> || localvar || set <property> <value> || get <property> || " +"<number>|-|+|<name>" msgstr "" #, fuzzy @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1068,10 +1068,11 @@ msgstr "gestione dei buffer" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<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 " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1059,10 +1059,11 @@ msgstr "バッファの管理" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<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>|-" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1087,10 +1087,11 @@ msgstr "zarządzaj buforami" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<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 " diff --git a/po/pt_BR.po b/po/pt_BR.po index 7c82c370a..efe8c0625 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1110,10 +1110,11 @@ msgstr "gerenciar buffers" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<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 " @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -1088,10 +1088,11 @@ msgstr "управление буферами" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<number>|<name>...]] || " +"renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || " +"notify <level> || localvar || set <property> <value> || get <property> || " +"<number>|-|+|<name>" msgstr "" #, fuzzy @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -960,10 +960,11 @@ msgstr "" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<number>|<name>...]] || " +"renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || " +"notify <level> || localvar || set <property> <value> || get <property> || " +"<number>|-|+|<name>" msgstr "" msgid "" diff --git a/po/weechat.pot b/po/weechat.pot index 4b6e3e452..eab62b237 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-05 16:09+0200\n" +"POT-Creation-Date: 2014-04-05 18:37+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" @@ -967,10 +967,11 @@ msgstr "" msgid "" "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>" +"|| unmerge [<number>|-all] || hide [<number>|<name>|-all [<number>|" +"<name>...]] || unhide [<number>|<name>|-all [<number>|<name>...]] || " +"renumber [<number1> [<number2> [<start>]]] || close [<n1>[-<n2>]|<name>] || " +"notify <level> || localvar || set <property> <value> || get <property> || " +"<number>|-|+|<name>" msgstr "" msgid "" diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 8872a824c..1aa79b784 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -770,25 +770,30 @@ COMMAND_CALLBACK(buffer) { if (argc > 2) { - for (i = 2; i < argc; i++) + if (string_strcasecmp (argv[2], "-all") == 0) + gui_buffer_hide_all (); + else { - ptr_buffer = gui_buffer_search_by_number_or_name (argv[i]); - if (ptr_buffer) + for (i = 2; i < argc; i++) { - number = strtol (argv[2], &error, 10); - if (error && !error[0]) + ptr_buffer = gui_buffer_search_by_number_or_name (argv[i]); + if (ptr_buffer) { - for (ptr_buffer2 = gui_buffers; ptr_buffer2; - ptr_buffer2 = ptr_buffer2->next_buffer) + number = strtol (argv[2], &error, 10); + if (error && !error[0]) { - if (ptr_buffer2->number == ptr_buffer->number) + for (ptr_buffer2 = gui_buffers; ptr_buffer2; + ptr_buffer2 = ptr_buffer2->next_buffer) { - gui_buffer_hide (ptr_buffer2); + if (ptr_buffer2->number == ptr_buffer->number) + { + gui_buffer_hide (ptr_buffer2); + } } } + else + gui_buffer_hide (ptr_buffer); } - else - gui_buffer_hide (ptr_buffer); } } } @@ -803,25 +808,30 @@ COMMAND_CALLBACK(buffer) { if (argc > 2) { - for (i = 2; i < argc; i++) + if (string_strcasecmp (argv[2], "-all") == 0) + gui_buffer_unhide_all (); + else { - ptr_buffer = gui_buffer_search_by_number_or_name (argv[i]); - if (ptr_buffer) + for (i = 2; i < argc; i++) { - number = strtol (argv[2], &error, 10); - if (error && !error[0]) + ptr_buffer = gui_buffer_search_by_number_or_name (argv[i]); + if (ptr_buffer) { - for (ptr_buffer2 = gui_buffers; ptr_buffer2; - ptr_buffer2 = ptr_buffer2->next_buffer) + number = strtol (argv[2], &error, 10); + if (error && !error[0]) { - if (ptr_buffer2->number == ptr_buffer->number) + for (ptr_buffer2 = gui_buffers; ptr_buffer2; + ptr_buffer2 = ptr_buffer2->next_buffer) { - gui_buffer_unhide (ptr_buffer2); + if (ptr_buffer2->number == ptr_buffer->number) + { + gui_buffer_unhide (ptr_buffer2); + } } } + else + gui_buffer_unhide (ptr_buffer); } - else - gui_buffer_unhide (ptr_buffer); } } } @@ -6747,8 +6757,8 @@ command_init () " || swap <number1>|<name1> [<number2>|<name2>]" " || merge <number>" " || unmerge [<number>|-all]" - " || hide [<number>|<name> [<number>|<name>...]]" - " || unhide [<number>|<name> [<number>|<name>...]]" + " || hide [<number>|<name>|-all [<number>|<name>...]]" + " || unhide [<number>|<name>|-all [<number>|<name>...]]" " || renumber [<number1> [<number2> [<start>]]]" " || close [<n1>[-<n2>]|<name>]" " || notify <level>" @@ -6821,8 +6831,10 @@ command_init () " || swap %(buffers_numbers)" " || merge %(buffers_numbers)" " || unmerge %(buffers_numbers)|-all" - " || hide %(buffers_numbers)|%(buffers_plugins_names)|%*" - " || unhide %(buffers_numbers)|%(buffers_plugins_names)|%*" + " || hide %(buffers_numbers)|%(buffers_plugins_names)|-all " + "%(buffers_numbers)|%(buffers_plugins_names)|%*" + " || unhide %(buffers_numbers)|%(buffers_plugins_names)|-all " + "%(buffers_numbers)|%(buffers_plugins_names)|%*" " || renumber %(buffers_numbers) %(buffers_numbers) %(buffers_numbers)" " || close %(buffers_plugins_names)" " || list" diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 5413e29a3..ae4a2a995 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -3467,6 +3467,22 @@ gui_buffer_hide (struct t_gui_buffer *buffer) } /* + * Hides all buffers. + */ + +void +gui_buffer_hide_all () +{ + struct t_gui_buffer *ptr_buffer; + + for (ptr_buffer = gui_buffers; ptr_buffer; + ptr_buffer = ptr_buffer->next_buffer) + { + gui_buffer_hide (ptr_buffer); + } +} + +/* * Unhides a buffer. */ @@ -3483,6 +3499,22 @@ gui_buffer_unhide (struct t_gui_buffer *buffer) } /* + * Unhides all buffers. + */ + +void +gui_buffer_unhide_all () +{ + struct t_gui_buffer *ptr_buffer; + + for (ptr_buffer = gui_buffers; ptr_buffer; + ptr_buffer = ptr_buffer->next_buffer) + { + gui_buffer_unhide (ptr_buffer); + } +} + +/* * Sorts buffers by layout number. */ diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h index a9a55f295..fa0c6c8fa 100644 --- a/src/gui/gui-buffer.h +++ b/src/gui/gui-buffer.h @@ -316,7 +316,9 @@ extern void gui_buffer_merge (struct t_gui_buffer *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_hide_all (); extern void gui_buffer_unhide (struct t_gui_buffer *buffer); +extern void gui_buffer_unhide_all (); 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); |