summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-16 22:22:42 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-16 22:22:42 +0200
commit168b1dd2b07207ad1771186a48cdebbda9e8527d (patch)
treeeb7d1ba3b9612621d7ef687284f4fbb7ebbc7cb3
parent4d9e8668bb9c4889752b50b20561ab61bea8d12f (diff)
downloadweechat-168b1dd2b07207ad1771186a48cdebbda9e8527d.zip
core: allow name of buffer for command /buffer clear (task #11269)
-rw-r--r--ChangeLog3
-rw-r--r--doc/de/autogen/user/weechat_commands.txt2
-rw-r--r--doc/en/autogen/user/weechat_commands.txt2
-rw-r--r--doc/fr/autogen/user/weechat_commands.txt2
-rw-r--r--doc/it/autogen/user/weechat_commands.txt16
-rw-r--r--po/cs.po8
-rw-r--r--po/de.po9
-rw-r--r--po/es.po8
-rw-r--r--po/fr.po16
-rw-r--r--po/hu.po8
-rw-r--r--po/it.po9
-rw-r--r--po/pl.po8
-rw-r--r--po/pt_BR.po8
-rw-r--r--po/ru.po8
-rw-r--r--po/weechat.pot8
-rw-r--r--src/core/wee-command.c10
16 files changed, 67 insertions, 58 deletions
diff --git a/ChangeLog b/ChangeLog
index bc316dbba..5e34762c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
diff --git a/po/cs.po b/po/cs.po
index d4950b6c3..3bb461de2 100644
--- a/po/cs.po
+++ b/po/cs.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-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 "
diff --git a/po/de.po b/po/de.po
index 772bad8c8..fc9d73dab 100644
--- a/po/de.po
+++ b/po/de.po
@@ -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 "
diff --git a/po/es.po b/po/es.po
index 5911ba0e5..af3fdf1a1 100644
--- a/po/es.po
+++ b/po/es.po
@@ -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 "
diff --git a/po/fr.po b/po/fr.po
index 65da57c99..a4808a749 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -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"
diff --git a/po/hu.po b/po/hu.po
index a9ac1eb40..a0401d7c5 100644
--- a/po/hu.po
+++ b/po/hu.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: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
diff --git a/po/it.po b/po/it.po
index 41d72dbff..0c2e91b07 100644
--- a/po/it.po
+++ b/po/it.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-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> || "
diff --git a/po/pl.po b/po/pl.po
index a64cfd054..d5a3fb191 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -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 "
diff --git a/po/ru.po b/po/ru.po
index f1f1a3a8d..aeee0eb4c 100644
--- a/po/ru.po
+++ b/po/ru.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: 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"