diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | doc/de/includes/autogen_user_commands.de.adoc | 13 | ||||
-rw-r--r-- | doc/en/includes/autogen_user_commands.en.adoc | 13 | ||||
-rw-r--r-- | doc/fr/includes/autogen_user_commands.fr.adoc | 13 | ||||
-rw-r--r-- | doc/it/includes/autogen_user_commands.it.adoc | 13 | ||||
-rw-r--r-- | doc/ja/includes/autogen_user_commands.ja.adoc | 13 | ||||
-rw-r--r-- | doc/pl/includes/autogen_user_commands.pl.adoc | 13 | ||||
-rw-r--r-- | doc/sr/includes/autogen_user_commands.sr.adoc | 13 | ||||
-rw-r--r-- | po/cs.po | 20 | ||||
-rw-r--r-- | po/de.po | 21 | ||||
-rw-r--r-- | po/es.po | 21 | ||||
-rw-r--r-- | po/fr.po | 25 | ||||
-rw-r--r-- | po/hu.po | 19 | ||||
-rw-r--r-- | po/it.po | 20 | ||||
-rw-r--r-- | po/ja.po | 21 | ||||
-rw-r--r-- | po/pl.po | 21 | ||||
-rw-r--r-- | po/pt.po | 20 | ||||
-rw-r--r-- | po/pt_BR.po | 21 | ||||
-rw-r--r-- | po/ru.po | 19 | ||||
-rw-r--r-- | po/sr.po | 21 | ||||
-rw-r--r-- | po/tr.po | 21 | ||||
-rw-r--r-- | po/weechat.pot | 17 | ||||
-rw-r--r-- | src/core/wee-command.c | 35 |
23 files changed, 399 insertions, 15 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 6c55b0a77..719a3e8e5 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] New features:: + * core: add command `/allbuf` * core: add command `/hotlist` * core: move some `/input` actions to commands `/buffer jump` and `/hotlist` * core: improve case convert and insensitive char comparisons (issue #258) diff --git a/doc/de/includes/autogen_user_commands.de.adoc b/doc/de/includes/autogen_user_commands.de.adoc index aa6a9a884..1b49c3ce5 100644 --- a/doc/de/includes/autogen_user_commands.de.adoc +++ b/doc/de/includes/autogen_user_commands.de.adoc @@ -1104,6 +1104,19 @@ Beispiele: // end::alias_commands[] // tag::weechat_commands[] +[[command_weechat_allbuf]] +* `+allbuf+`: execute a command on all buffers + +---- +/allbuf <command> + +command: command to execute (or text to send to buffer if command does not start with '/') + +Examples: + set unread marker on all buffers: + /allbuf /buffer set unread +---- + [[command_weechat_away]] * `+away+`: Abwesenheitsstatus setzen oder entfernen diff --git a/doc/en/includes/autogen_user_commands.en.adoc b/doc/en/includes/autogen_user_commands.en.adoc index 75a1e6aa0..c0a9c39cc 100644 --- a/doc/en/includes/autogen_user_commands.en.adoc +++ b/doc/en/includes/autogen_user_commands.en.adoc @@ -1104,6 +1104,19 @@ Examples: // end::alias_commands[] // tag::weechat_commands[] +[[command_weechat_allbuf]] +* `+allbuf+`: execute a command on all buffers + +---- +/allbuf <command> + +command: command to execute (or text to send to buffer if command does not start with '/') + +Examples: + set unread marker on all buffers: + /allbuf /buffer set unread +---- + [[command_weechat_away]] * `+away+`: set or remove away status diff --git a/doc/fr/includes/autogen_user_commands.fr.adoc b/doc/fr/includes/autogen_user_commands.fr.adoc index 4c2061602..111ed53f5 100644 --- a/doc/fr/includes/autogen_user_commands.fr.adoc +++ b/doc/fr/includes/autogen_user_commands.fr.adoc @@ -1104,6 +1104,19 @@ Exemples : // end::alias_commands[] // tag::weechat_commands[] +[[command_weechat_allbuf]] +* `+allbuf+`: exécuter une commande sur tous les tampons + +---- +/allbuf <commande> + +commande : commande à exécuter (ou texte à envoyer au tampon si la commande ne commence pas par '/') + +Exemples : + définir le marqueur de données non lues sur tous les tampons : + /allbuf /buffer set unread +---- + [[command_weechat_away]] * `+away+`: définir ou supprimer le statut d'absence diff --git a/doc/it/includes/autogen_user_commands.it.adoc b/doc/it/includes/autogen_user_commands.it.adoc index d9f2b2299..eeda21bb7 100644 --- a/doc/it/includes/autogen_user_commands.it.adoc +++ b/doc/it/includes/autogen_user_commands.it.adoc @@ -1104,6 +1104,19 @@ Examples: // end::alias_commands[] // tag::weechat_commands[] +[[command_weechat_allbuf]] +* `+allbuf+`: execute a command on all buffers + +---- +/allbuf <command> + +command: command to execute (or text to send to buffer if command does not start with '/') + +Examples: + set unread marker on all buffers: + /allbuf /buffer set unread +---- + [[command_weechat_away]] * `+away+`: imposta o elimina lo stato di assenza diff --git a/doc/ja/includes/autogen_user_commands.ja.adoc b/doc/ja/includes/autogen_user_commands.ja.adoc index 25c866325..c5ff104f3 100644 --- a/doc/ja/includes/autogen_user_commands.ja.adoc +++ b/doc/ja/includes/autogen_user_commands.ja.adoc @@ -1104,6 +1104,19 @@ Examples: // end::alias_commands[] // tag::weechat_commands[] +[[command_weechat_allbuf]] +* `+allbuf+`: execute a command on all buffers + +---- +/allbuf <command> + +command: command to execute (or text to send to buffer if command does not start with '/') + +Examples: + set unread marker on all buffers: + /allbuf /buffer set unread +---- + [[command_weechat_away]] * `+away+`: 離席状態の切り替え diff --git a/doc/pl/includes/autogen_user_commands.pl.adoc b/doc/pl/includes/autogen_user_commands.pl.adoc index 88cc045de..da4dd472d 100644 --- a/doc/pl/includes/autogen_user_commands.pl.adoc +++ b/doc/pl/includes/autogen_user_commands.pl.adoc @@ -1103,6 +1103,19 @@ Przykłady: // end::alias_commands[] // tag::weechat_commands[] +[[command_weechat_allbuf]] +* `+allbuf+`: execute a command on all buffers + +---- +/allbuf <command> + +command: command to execute (or text to send to buffer if command does not start with '/') + +Examples: + set unread marker on all buffers: + /allbuf /buffer set unread +---- + [[command_weechat_away]] * `+away+`: ustawia lub kasuje status nieobecności diff --git a/doc/sr/includes/autogen_user_commands.sr.adoc b/doc/sr/includes/autogen_user_commands.sr.adoc index 108687d98..f02aa3745 100644 --- a/doc/sr/includes/autogen_user_commands.sr.adoc +++ b/doc/sr/includes/autogen_user_commands.sr.adoc @@ -1104,6 +1104,19 @@ addcompletion: додавање алијаса са кориснички деф // end::alias_commands[] // tag::weechat_commands[] +[[command_weechat_allbuf]] +* `+allbuf+`: execute a command on all buffers + +---- +/allbuf <command> + +command: command to execute (or text to send to buffer if command does not start with '/') + +Examples: + set unread marker on all buffers: + /allbuf /buffer set unread +---- + [[command_weechat_away]] * `+away+`: поставља или уклања статус одсутности @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1091,6 +1091,24 @@ msgstr "" "%sChyba: nemohu spojit okna, není zde další okno se stejnou velikostí poblíž " "aktuálního okna" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "vykonat příkaz na všech připojených serverech" + +#, fuzzy +msgid "<command>" +msgstr "Příkazy:" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "nastavit nebo smazat \"away\" status" @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-12-14 22:37+0100\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German - Germany <weechatter@arcor.de>\n" @@ -1122,6 +1122,25 @@ msgstr "" "%sFenster kann nicht geschlossen werden. Es existiert kein weiteres Fenster " "mit derselben Größe" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "führt einen Befehl aus, der zu allen verbundenen Server gesendet wird" + +#, fuzzy +#| msgid "Command" +msgid "<command>" +msgstr "Befehl" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "Abwesenheitsstatus setzen oder entfernen" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Santiago Forero <santiago@forero.xyz>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1143,6 +1143,25 @@ msgstr "" "%sError: no se pudo cerrar la ventana, no hay ninguna otra ventana con el " "mismo tamaño de la actual" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "ejecuta un comando en todos los servidores conectados" + +#, fuzzy +#| msgid "Command" +msgid "<command>" +msgstr "Comando" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "activa o desactiva el estado ausente" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" -"PO-Revision-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" +"PO-Revision-Date: 2022-12-25 21:21+0100\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -1100,6 +1100,27 @@ msgstr "" "%sImpossible de fermer la fenêtre, aucune autre fenêtre avec la même taille " "à coté de la fenêtre actuelle" +msgid "execute a command on all buffers" +msgstr "exécuter une commande sur tous les tampons" + +msgid "<command>" +msgstr "<commande>" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" +"commande : commande à exécuter (ou texte à envoyer au tampon si la commande " +"ne commence pas par '/')\n" +"\n" +"Exemples :\n" +" définir le marqueur de données non lues sur tous les tampons :\n" +" /allbuf /buffer set unread" + msgid "set or remove away status" msgstr "définir ou supprimer le statut d'absence" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1080,6 +1080,23 @@ msgstr "" "ablak.\n" #, fuzzy +msgid "execute a command on all buffers" +msgstr "üzenet küldése az összes csatlakoztatott szerver összes szobájába" + +#, fuzzy +msgid "<command>" +msgstr "%s belső parancsok:\n" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + +#, fuzzy msgid "set or remove away status" msgstr "távolléti státusz váltása" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1061,6 +1061,24 @@ msgstr "" "%sErrore: impossibile unire le finestre, non c'è un'altra finestra della " "stessa dimensione vicino quella corrente" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "esegue un comando su tutti i server connessi" + +#, fuzzy +msgid "<command>" +msgstr "comando /%s" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "imposta o elimina lo stato di assenza" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -1097,6 +1097,25 @@ msgstr "" "%sエラー: ウィンドウのマージに失敗、現在のウィンドウの近くには同じサイズの異" "なるウィンドウがありません" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "全ての接続済みサーバでコマンドを実行" + +#, fuzzy +#| msgid "Command" +msgid "<command>" +msgstr "コマンド" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "離席状態の切り替え" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n" "Language-Team: Polish <kde-i18n-doc@kde.org>\n" @@ -1126,6 +1126,25 @@ msgstr "" "%sNie można zamknąć okna, nie ma innego okna o takim samym rozmiarze w " "pobliżu obecnego" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "wykonuje komendę na wszystkich połączonych serwerach" + +#, fuzzy +#| msgid "Command" +msgid "<command>" +msgstr "Komenda" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "ustawia lub kasuje status nieobecności" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -1093,6 +1093,24 @@ msgstr "" "%sErro: não é possível unir as janelas, não há outra janela com o mesmo " "tamanho junto à atual" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "executar um comando em todos os servidores conectados" + +#, fuzzy +msgid "<command>" +msgstr "Comandos:" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "definir ou remover estado ausente" diff --git a/po/pt_BR.po b/po/pt_BR.po index 38e05407e..3cf18c781 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: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1095,6 +1095,25 @@ msgstr "" "%sErro: impossível mesclar janelas, não já nenhuma outra janela com o mesmo " "tamanho perto da atual" +#, fuzzy +#| msgid "execute a command several times" +msgid "execute a command on all buffers" +msgstr "executa um comando várias vezes" + +#, fuzzy +#| msgid "Command" +msgid "<command>" +msgstr "Comando" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "ativar ou remover o status de ausente" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1101,6 +1101,23 @@ msgstr "" "текущим.\n" #, fuzzy +msgid "execute a command on all buffers" +msgstr "отправить сообщение на все каналы всех поключенных серверов" + +#, fuzzy +msgid "<command>" +msgstr "Внутренние команды %s:\n" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + +#, fuzzy msgid "set or remove away status" msgstr "переключает статус \"отошёл\"" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-12-05 09:44+0400\n" "Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1100,6 +1100,25 @@ msgstr "" "%sПрозор не може да се затвори, у близини текућег прозора не постоји други " "исте величине" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "извршавање команде на свим повезаним серверима" + +#, fuzzy +#| msgid "Command" +msgid "<command>" +msgstr "Команда" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "поставља или уклања статус одсутности" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Emir SARI <emir_sari@icloud.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1090,6 +1090,25 @@ msgstr "" "%sPencere kapatılamıyor, geçerli pencerenin yakınında aynı boyutlu başka bir " "pencere yok" +#, fuzzy +#| msgid "execute a command on all connected servers" +msgid "execute a command on all buffers" +msgstr "tüm bağlı sunucularda bir komut çalıştır" + +#, fuzzy +#| msgid "Command" +msgid "<command>" +msgstr "Komut" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "uzakta durumunu ayarla veya kaldır" diff --git a/po/weechat.pot b/po/weechat.pot index 3ddbe908c..516e7d172 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-12-25 19:37+0100\n" +"POT-Creation-Date: 2022-12-25 21:19+0100\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -990,6 +990,21 @@ msgid "" "one" msgstr "" +msgid "execute a command on all buffers" +msgstr "" + +msgid "<command>" +msgstr "" + +msgid "" +"command: command to execute (or text to send to buffer if command does not " +"start with '/')\n" +"\n" +"Examples:\n" +" set unread marker on all buffers:\n" +" /allbuf /buffer set unread" +msgstr "" + msgid "set or remove away status" msgstr "" diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 2657ee291..784446ea1 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -89,6 +89,30 @@ extern char **environ; /* + * Callback for command "/allbuf": executes a command on all buffers. + */ + +COMMAND_CALLBACK(allbuf) +{ + struct t_gui_buffer *ptr_buffer; + + /* make C compiler happy */ + (void) pointer; + (void) data; + (void) buffer; + + COMMAND_MIN_ARGS(2, ""); + + for (ptr_buffer = gui_buffers; ptr_buffer; + ptr_buffer = ptr_buffer->next_buffer) + { + (void) input_data (ptr_buffer, argv_eol[1], NULL); + } + + return WEECHAT_RC_OK; +} + +/* * Callback for command "/away". * * The command /away in core does nothing, so this function is empty. @@ -7437,6 +7461,17 @@ void command_init () { hook_command ( + NULL, "allbuf", + N_("execute a command on all buffers"), + N_("<command>"), + N_("command: command to execute (or text to send to buffer if " + "command does not start with '/')\n" + "\n" + "Examples:\n" + " set unread marker on all buffers:\n" + " /allbuf /buffer set unread"), + "%(commands:/)", &command_allbuf, NULL, NULL); + hook_command ( NULL, "away", N_("set or remove away status"), N_("[-all] [<message>]"), |