diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-08-16 22:22:42 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-08-16 22:22:42 +0200 |
commit | 168b1dd2b07207ad1771186a48cdebbda9e8527d (patch) | |
tree | eb7d1ba3b9612621d7ef687284f4fbb7ebbc7cb3 | |
parent | 4d9e8668bb9c4889752b50b20561ab61bea8d12f (diff) | |
download | weechat-168b1dd2b07207ad1771186a48cdebbda9e8527d.zip |
core: allow name of buffer for command /buffer clear (task #11269)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | doc/de/autogen/user/weechat_commands.txt | 2 | ||||
-rw-r--r-- | doc/en/autogen/user/weechat_commands.txt | 2 | ||||
-rw-r--r-- | doc/fr/autogen/user/weechat_commands.txt | 2 | ||||
-rw-r--r-- | doc/it/autogen/user/weechat_commands.txt | 16 | ||||
-rw-r--r-- | po/cs.po | 8 | ||||
-rw-r--r-- | po/de.po | 9 | ||||
-rw-r--r-- | po/es.po | 8 | ||||
-rw-r--r-- | po/fr.po | 16 | ||||
-rw-r--r-- | po/hu.po | 8 | ||||
-rw-r--r-- | po/it.po | 9 | ||||
-rw-r--r-- | po/pl.po | 8 | ||||
-rw-r--r-- | po/pt_BR.po | 8 | ||||
-rw-r--r-- | po/ru.po | 8 | ||||
-rw-r--r-- | po/weechat.pot | 8 | ||||
-rw-r--r-- | src/core/wee-command.c | 10 |
16 files changed, 67 insertions, 58 deletions
@@ -1,12 +1,13 @@ WeeChat ChangeLog ================= Sébastien Helleu <flashcode@flashtux.org> -v0.3.6-dev, 2011-08-09 +v0.3.6-dev, 2011-08-16 Version 0.3.6 (under dev!) -------------------------- +* core: allow name of buffer for command /buffer clear (task #11269) * core: add new command /repeat (execute a command several times) * core: save and restore layout for buffers and windows on /upgrade * core: fix bugs with automatic layout (bug #26110), add support of merged diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt index 3b92be733..2bb6b4099 100644 --- a/doc/de/autogen/user/weechat_commands.txt +++ b/doc/de/autogen/user/weechat_commands.txt @@ -63,7 +63,7 @@ Beispiele: [command]*`buffer`* Buffer verwalten:: ........................................ /buffer list - clear [<number>|-merged|-all] + clear [<number>|<name>|-merged|-all] move|merge <number> unmerge [<number>|-all] close [<n1>[-<n2>]|<name>] diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt index 4f918a29e..4cca616a0 100644 --- a/doc/en/autogen/user/weechat_commands.txt +++ b/doc/en/autogen/user/weechat_commands.txt @@ -63,7 +63,7 @@ Examples: [command]*`buffer`* manage buffers:: ........................................ /buffer list - clear [<number>|-merged|-all] + clear [<number>|<name>|-merged|-all] move|merge <number> unmerge [<number>|-all] close [<n1>[-<n2>]|<name>] diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt index c5b5ef3c1..9db6ae628 100644 --- a/doc/fr/autogen/user/weechat_commands.txt +++ b/doc/fr/autogen/user/weechat_commands.txt @@ -63,7 +63,7 @@ Exemples: [command]*`buffer`* gestion des tampons:: ........................................ /buffer list - clear [<nombre>|-merged|-all] + clear [<nombre>|<nom>|-merged|-all] move|merge <nombre> unmerge [<nombre>|-all] close [<n1>[-<n2>]|<nom>] diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt index 435f6abe6..391ea3abd 100644 --- a/doc/it/autogen/user/weechat_commands.txt +++ b/doc/it/autogen/user/weechat_commands.txt @@ -63,15 +63,15 @@ Esempi: [command]*`buffer`* gestione buffer:: ........................................ /buffer list - clear [<numero>|-merged|-all] - move|merge <numero> - unmerge [<numero>|-all] - close [<n1>[-<n2>]|<nome>] - notify <livello> + clear [<number>|<name>|-merged|-all] + move|merge <number> + unmerge [<number>|-all] + close [<n1>[-<n2>]|<name>] + notify <level> localvar - set <proprietà> <valore> - get <proprietà> - <numero>|<nome> + set <property> <value> + get <property> + <number>|<name> list: elenca i buffer (senza argomento viene mostrata questa lista) clear: pulisce il contenuto del buffer (numero per un buffer, -merged per i buffer incollati, -all per tutti i buffer o nessun parametro per quello corrente) @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: 2011-07-05 15:37+0200\n" "Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -935,9 +935,9 @@ msgstr "řídit buffery" #, fuzzy msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || 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 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: 2011-08-15 10:10+0100\n" "Last-Translator: Nils Görs\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -949,10 +949,11 @@ msgstr "" msgid "manage buffers" msgstr "Buffer verwalten" +#, fuzzy msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || " +"localvar || set <property> <value> || get <property> || <number>|<name>" msgstr "" "list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " "[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: 2011-07-05 15:37+0200\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -940,9 +940,9 @@ msgstr "gestionar los buffers" #, fuzzy msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || " +"localvar || set <property> <value> || get <property> || <number>|<name>" msgstr "" "list || clear [<número>|-merged|-all] || move|merge <número> || unmerge " "[<número>] || close [<n1>[-<n2>]] || notify <nivel> || localvar || set " @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" -"PO-Revision-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" +"PO-Revision-Date: 2011-08-16 22:19+0200\n" "Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: French\n" @@ -938,13 +938,13 @@ msgid "manage buffers" msgstr "gestion des tampons" msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || " +"localvar || set <property> <value> || get <property> || <number>|<name>" msgstr "" -"list || clear [<nombre>|-merged|-all] || move|merge <nombre> || unmerge " -"[<nombre>|-all] || close [<n1>[-<n2>]|<nom>] || notify <niveau> || localvar " -"|| set <propriété> <valeur> || get <propriété> || <nombre>|<nom>" +"list || clear [<nombre>|<nom>|-merged|-all] || move|merge <nombre> || " +"unmerge [<nombre>|-all] || 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 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: 2011-05-15 10:51+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -919,9 +919,9 @@ msgid "manage buffers" msgstr "pufferek kezelése" msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || 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 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: 2011-08-15 16:57+0200\n" "Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -929,10 +929,11 @@ msgstr "" msgid "manage buffers" msgstr "gestione buffer" +#, fuzzy msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || " +"localvar || set <property> <value> || get <property> || <number>|<name>" msgstr "" "list || clear [<numero>|-merged|-all] || move|merge <numero> || unmerge " "[<numero>|-all] || close [<n1>[-<n2>]|<nome>] || notify <livello> || " @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: 2011-07-05 15:38+0200\n" "Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -943,9 +943,9 @@ msgstr "zarządzaj buforami" #, fuzzy msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || " +"localvar || set <property> <value> || get <property> || <number>|<name>" msgstr "" "list || clear [<numer>|-merged|-all] || move|merge <numer> || unmerge " "[<numer>] || close [<n1>[-<n2>]] || notify <poziom> || localvar || set " diff --git a/po/pt_BR.po b/po/pt_BR.po index fb140516f..4eb072820 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: 2011-05-15 10:52+0200\n" "Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -947,9 +947,9 @@ msgstr "gerenciar buffers" #, fuzzy msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || " +"localvar || set <property> <value> || get <property> || <number>|<name>" msgstr "" "[clear [número | -merged | -all] | move número | merge número | unmerge " "[número] | close [n1[-n2]] | list | notify nível | localvar | set property " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.6-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: 2011-05-15 10:52+0200\n" "Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -926,9 +926,9 @@ msgid "manage buffers" msgstr "управление буферами" msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || " +"localvar || set <property> <value> || get <property> || <number>|<name>" msgstr "" #, fuzzy diff --git a/po/weechat.pot b/po/weechat.pot index 458902dda..3510f9a5e 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-08-15 21:45+0200\n" +"POT-Creation-Date: 2011-08-16 22:19+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -819,9 +819,9 @@ msgid "manage buffers" msgstr "" msgid "" -"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge " -"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar " -"|| set <property> <value> || get <property> || <number>|<name>" +"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || " +"unmerge [<number>|-all] || 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 140df5021..81246bb3c 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -578,6 +578,12 @@ COMMAND_CALLBACK(buffer) } } } + else + { + ptr_buffer = gui_buffer_search_by_full_name (argv[i]); + if (ptr_buffer) + gui_buffer_clear (ptr_buffer); + } } } } @@ -5308,7 +5314,7 @@ command_init () hook_command (NULL, "buffer", N_("manage buffers"), N_("list" - " || clear [<number>|-merged|-all]" + " || clear [<number>|<name>|-merged|-all]" " || move|merge <number>" " || unmerge [<number>|-all]" " || close [<n1>[-<n2>]|<name>]" @@ -5365,7 +5371,7 @@ command_init () " /buffer #weechat\n" " jump to next buffer:\n" " /buffer +1"), - "clear -merged|-all|%(buffers_numbers)" + "clear -merged|-all|%(buffers_numbers)|%(buffers_plugins_names)" " || move %(buffers_numbers)" " || merge %(buffers_numbers)" " || unmerge %(buffers_numbers)|-all" |