1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

core: add command /allbuf

This commit is contained in:
Sébastien Helleu
2022-12-25 21:23:14 +01:00
parent 2ad6f2f3d5
commit 2c238e08ff
23 changed files with 399 additions and 15 deletions
+1
View File
@@ -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)
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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+`: 離席状態の切り替え
@@ -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
@@ -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+`: поставља или уклања статус одсутности
+19 -1
View File
@@ -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"
+20 -1
View File
@@ -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"
+20 -1
View File
@@ -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"
+23 -2
View File
@@ -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"
+18 -1
View File
@@ -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"
@@ -1079,6 +1079,23 @@ msgstr ""
"%s nem sikerült az ablakokat összefésülni: nincs a közelben azonos méretű "
"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"
+19 -1
View File
@@ -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 -1
View File
@@ -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 "離席状態の切り替え"
+20 -1
View File
@@ -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"
+19 -1
View File
@@ -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"
+20 -1
View File
@@ -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"
+18 -1
View File
@@ -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"
@@ -1100,6 +1100,23 @@ msgstr ""
"%s не могу объединить окна, есть другое окно такого-же размера рядом с "
"текущим.\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 -1
View File
@@ -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 -1
View File
@@ -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"
+16 -1
View File
@@ -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 ""
+35
View File
@@ -88,6 +88,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".
*
@@ -7436,6 +7460,17 @@ COMMAND_CALLBACK(window)
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"),