core: allow empty arguments for command /print
This commit is contained in:
parent
45db2e9668
commit
652ec24449
@ -11,8 +11,9 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
(file 'NEWS' in sources).
|
||||
|
||||
|
||||
== Version 0.4.4 (under dev!)
|
||||
== Version 0.4.4 (under dev)
|
||||
|
||||
* core: allow empty arguments for command /print
|
||||
* core: add bare display mode (for easy text selection and click on URLs), new
|
||||
key: key[alt-!], new option "bare" in command /window, new options:
|
||||
weechat.look.bare_display_exit_on_input and
|
||||
|
@ -565,8 +565,8 @@ Ohne Angabe eines Arguments werden alle installierten Erweiterungen angezeigt.
|
||||
[command]*`print`* gibt einen Text::
|
||||
|
||||
----
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] <text>
|
||||
-stdout|-stderr <text>
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]
|
||||
-stdout|-stderr [<text>]
|
||||
|
||||
-buffer: Buffer in welchem der Text ausgegeben werden soll (standardmäßig: aktueller Buffer)
|
||||
-core: Alias für "-buffer core.weechat"
|
||||
|
@ -565,8 +565,8 @@ Without argument, this command lists loaded plugins.
|
||||
[command]*`print`* display text on a buffer::
|
||||
|
||||
----
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] <text>
|
||||
-stdout|-stderr <text>
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]
|
||||
-stdout|-stderr [<text>]
|
||||
|
||||
-buffer: the buffer where text is displayed (default: current buffer)
|
||||
-core: alias of "-buffer core.weechat"
|
||||
|
@ -565,8 +565,8 @@ Sans paramètre, cette commande liste les extensions chargées.
|
||||
[command]*`print`* afficher du texte dans un tampon::
|
||||
|
||||
----
|
||||
/print [-buffer <numéro>|<nom>] [-core] [-escape] [-date <date>] [-tags <étiquettes>] [-action|-error|-join|-network|-quit] <texte>
|
||||
-stdout|-stderr <texte>
|
||||
/print [-buffer <numéro>|<nom>] [-core] [-escape] [-date <date>] [-tags <étiquettes>] [-action|-error|-join|-network|-quit] [<texte>]
|
||||
-stdout|-stderr [<texte>]
|
||||
|
||||
-buffer: le tampon où est affiché le texte (par défaut: tampon courant)
|
||||
-core: alias de "-buffer core.weechat"
|
||||
|
@ -565,8 +565,8 @@ Senza argomento, questo comando elenca i plugin caricati.
|
||||
[command]*`print`* display text on a buffer::
|
||||
|
||||
----
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] <text>
|
||||
-stdout|-stderr <text>
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]
|
||||
-stdout|-stderr [<text>]
|
||||
|
||||
-buffer: the buffer where text is displayed (default: current buffer)
|
||||
-core: alias of "-buffer core.weechat"
|
||||
|
@ -565,8 +565,8 @@ arguments: ロードするプラグインに与える引数
|
||||
[command]*`print`* バッファ内にテキストを表示::
|
||||
|
||||
----
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] <text>
|
||||
-stdout|-stderr <text>
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]
|
||||
-stdout|-stderr [<text>]
|
||||
|
||||
-buffer: テキストを表示するバッファ (デフォルト: 現在のバッファ)
|
||||
-core: "-buffer core.weechat" のエイリアス
|
||||
|
@ -565,8 +565,8 @@ Bez argumentów ta komenda wyświetli wszystkie załadowane wtyczki.
|
||||
[command]*`print`* wyświetl tekst w buforze::
|
||||
|
||||
----
|
||||
/print [-buffer <numer>|<nazwa>] [-core] [-escape] [-date <data>] [-tags <tagi>] [-action|-error|-join|-network|-quit] <tekst>
|
||||
-stdout|-stderr <tekst>
|
||||
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]
|
||||
-stdout|-stderr [<text>]
|
||||
|
||||
-buffer: bufor, w którym zostanie wyświetlony tekst (domyślnie: obecny bufor)
|
||||
-core: alias dla bufora "-buffer core.weechat"
|
||||
|
4
po/cs.po
4
po/cs.po
@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@ -1868,7 +1868,7 @@ msgstr "barva textu pro jeméno bufferu"
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
5
po/de.po
5
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-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <weechatter@arcor.de>\n"
|
||||
@ -2099,9 +2099,10 @@ msgstr ""
|
||||
msgid "display text on a buffer"
|
||||
msgstr "gibt einen Text"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
|
4
po/es.po
4
po/es.po
@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@ -1973,7 +1973,7 @@ msgstr "color del texto en el buffer del repetidor"
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
10
po/fr.po
10
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-02-16 10:12+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-17 11:10+0100\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@ -2049,11 +2049,11 @@ msgstr "afficher du texte dans un tampon"
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
"[-buffer <numéro>|<nom>] [-core] [-escape] [-date <date>] [-tags "
|
||||
"<étiquettes>] [-action|-error|-join|-network|-quit] <texte> || -stdout|-"
|
||||
"stderr <texte>"
|
||||
"<étiquettes>] [-action|-error|-join|-network|-quit] [<texte>] || -stdout|-"
|
||||
"stderr [<texte>]"
|
||||
|
||||
msgid ""
|
||||
"-buffer: the buffer where text is displayed (default: current buffer)\n"
|
||||
|
4
po/hu.po
4
po/hu.po
@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@ -1649,7 +1649,7 @@ msgstr "szerver nevének színe"
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
4
po/it.po
4
po/it.po
@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@ -2011,7 +2011,7 @@ msgstr "colore del testo nei buffer relay"
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
5
po/ja.po
5
po/ja.po
@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
|
||||
@ -1993,9 +1993,10 @@ msgstr ""
|
||||
msgid "display text on a buffer"
|
||||
msgstr "バッファ内にテキストを表示"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
|
5
po/pl.po
5
po/pl.po
@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@ -2038,9 +2038,10 @@ msgstr ""
|
||||
msgid "display text on a buffer"
|
||||
msgstr "wyświetl tekst w buforze"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
"[-buffer <numer>|<nazwa>] [-core] [-escape] [-date <data>] [-tags <tagi>] [-"
|
||||
"action|-error|-join|-network|-quit] <tekst> || -stdout|-stderr <tekst>"
|
||||
|
@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@ -1952,7 +1952,7 @@ msgstr "cor do texto para nomes de buffer"
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
4
po/ru.po
4
po/ru.po
@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@ -1672,7 +1672,7 @@ msgstr "цвет названия сервера"
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
4
po/tr.po
4
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-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\n"
|
||||
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
|
||||
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@ -1482,7 +1482,7 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
@ -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-02-16 10:12+0100\n"
|
||||
"POT-Creation-Date: 2014-02-17 11:09+0100\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"
|
||||
@ -1485,7 +1485,7 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
|
||||
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
|
||||
"action|-error|-join|-network|-quit] [<text>] || -stdout|-stderr [<text>]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
@ -4198,9 +4198,6 @@ COMMAND_CALLBACK(print)
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
|
||||
if (argc < 2)
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
ptr_buffer = buffer;
|
||||
date = 0;
|
||||
tags = NULL;
|
||||
@ -4312,12 +4309,9 @@ COMMAND_CALLBACK(print)
|
||||
break;
|
||||
}
|
||||
|
||||
if (i >= argc)
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
if (to_stdout || to_stderr)
|
||||
{
|
||||
text = string_convert_escaped_chars (argv_eol[i]);
|
||||
text = string_convert_escaped_chars ((i < argc) ? argv_eol[i] : "");
|
||||
if (text)
|
||||
{
|
||||
fprintf ((to_stdout) ? stdout : stderr, "%s", text);
|
||||
@ -4326,7 +4320,7 @@ COMMAND_CALLBACK(print)
|
||||
}
|
||||
else
|
||||
{
|
||||
text = strdup (argv_eol[i]);
|
||||
text = strdup ((i < argc) ? argv_eol[i] : "");
|
||||
if (text)
|
||||
{
|
||||
pos = NULL;
|
||||
@ -7110,8 +7104,8 @@ command_init ()
|
||||
NULL, "print",
|
||||
N_("display text on a buffer"),
|
||||
N_("[-buffer <number>|<name>] [-core] [-escape] [-date <date>] "
|
||||
"[-tags <tags>] [-action|-error|-join|-network|-quit] <text>"
|
||||
" || -stdout|-stderr <text>"),
|
||||
"[-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]"
|
||||
" || -stdout|-stderr [<text>]"),
|
||||
N_("-buffer: the buffer where text is displayed (default: current "
|
||||
"buffer)\n"
|
||||
" -core: alias of \"-buffer core.weechat\"\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user