summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.adoc1
-rw-r--r--doc/de/includes/autogen_user_commands.de.adoc13
-rw-r--r--doc/en/includes/autogen_user_commands.en.adoc13
-rw-r--r--doc/fr/includes/autogen_user_commands.fr.adoc13
-rw-r--r--doc/it/includes/autogen_user_commands.it.adoc13
-rw-r--r--doc/ja/includes/autogen_user_commands.ja.adoc13
-rw-r--r--doc/pl/includes/autogen_user_commands.pl.adoc13
-rw-r--r--doc/sr/includes/autogen_user_commands.sr.adoc13
-rw-r--r--po/cs.po20
-rw-r--r--po/de.po21
-rw-r--r--po/es.po21
-rw-r--r--po/fr.po25
-rw-r--r--po/hu.po19
-rw-r--r--po/it.po20
-rw-r--r--po/ja.po21
-rw-r--r--po/pl.po21
-rw-r--r--po/pt.po20
-rw-r--r--po/pt_BR.po21
-rw-r--r--po/ru.po19
-rw-r--r--po/sr.po21
-rw-r--r--po/tr.po21
-rw-r--r--po/weechat.pot17
-rw-r--r--src/core/wee-command.c35
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+`: поставља или уклања статус одсутности
diff --git a/po/cs.po b/po/cs.po
index 0a8199fc2..b88b49849 100644
--- a/po/cs.po
+++ b/po/cs.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: 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"
diff --git a/po/de.po b/po/de.po
index e7d7f5e07..8c999f834 100644
--- a/po/de.po
+++ b/po/de.po
@@ -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"
diff --git a/po/es.po b/po/es.po
index 38647b7d8..4aeb409bd 100644
--- a/po/es.po
+++ b/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: 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"
diff --git a/po/fr.po b/po/fr.po
index 825d3339e..650d83371 100644
--- a/po/fr.po
+++ b/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: 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"
diff --git a/po/hu.po b/po/hu.po
index 341ddbe41..e439edef8 100644
--- a/po/hu.po
+++ b/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: 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"
diff --git a/po/it.po b/po/it.po
index de7d84c8c..0c79e24c5 100644
--- a/po/it.po
+++ b/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: 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"
diff --git a/po/ja.po b/po/ja.po
index 6b7dd14f1..d85150f86 100644
--- a/po/ja.po
+++ b/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: 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 "離席状態の切り替え"
diff --git a/po/pl.po b/po/pl.po
index 0a1329049..64d44753c 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -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"
diff --git a/po/pt.po b/po/pt.po
index 268ffcc99..408605349 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -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"
diff --git a/po/ru.po b/po/ru.po
index 5f79f66af..59ad7d228 100644
--- a/po/ru.po
+++ b/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: 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 "переключает статус \"отошёл\""
diff --git a/po/sr.po b/po/sr.po
index 5a1efe3f6..5a3fca87d 100644
--- a/po/sr.po
+++ b/po/sr.po
@@ -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 "поставља или уклања статус одсутности"
diff --git a/po/tr.po b/po/tr.po
index 92a1c9953..a62f109c7 100644
--- a/po/tr.po
+++ b/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: 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>]"),