1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 04:45:42 +02:00

script: add parameters up/down/go in /help script and command completion

This commit is contained in:
Sébastien Helleu
2023-08-22 09:34:41 +02:00
parent 763e8bd3a0
commit fdebcf690b
16 changed files with 505 additions and 64 deletions
+1
View File
@@ -51,6 +51,7 @@ Bug fixes::
* logger: remove trailing empty line in display of backlog (issue #2002)
* perl: fix display of non-ASCII chars after load of a script with Perl >= 5.38 (issue #1996)
* relay: synchronize nick modes with IRC client upon connection (issue #1984)
* script: add parameters up/down/go in `/help script` and command completion
* script: adjust scroll after command `/script go N`
* script: fix cursor position after `/script list -i` or `/script list -il`
* script: fix buffer used by command `/script list -i|-il|-o|-ol`
+6 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -12689,7 +12689,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
"seznam [-o|-i] || hledej <text> || ukaž <script> || načti|uvolni|znovu načís "
"<script> [<script>...] || automaticky načti|nenačítejtej automaticky|přepni "
@@ -12724,6 +12724,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+98 -2
View File
File diff suppressed because it is too large Load Diff
+6 -2
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13430,7 +13430,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
msgid ""
@@ -13460,6 +13460,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+14 -4
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"PO-Revision-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-08-22 09:28+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -14987,12 +14987,12 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
"list [-o|-ol|-i|-il] || search <texte> || show <script> || load|unload|"
"reload <script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<nombre>] || go <ligne>|end"
msgid ""
" list: list loaded scripts (all languages)\n"
@@ -15021,6 +15021,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
@@ -15107,6 +15111,12 @@ msgstr ""
" upgrade : mettre à jour les scripts obsolètes (avec nouvelle version "
"disponible)\n"
" update : mettre à jour le cache local des scripts\n"
" up : déplacer la ligne sélectionnée de \"nombre\" lignes vers le "
"haut\n"
" down : déplacer la ligne sélectionnée de \"nombre\" lignes vers le "
"bas\n"
" go : sélectionner une ligne par numéro, la première ligne est 0 "
"(\"end\" pour sélectionner la dernière ligne)\n"
"\n"
"Sans paramètre, cette commande ouvre un tampon avec la liste des scripts.\n"
"\n"
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -12038,7 +12038,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
msgid ""
@@ -12068,6 +12068,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13186,7 +13186,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
msgid ""
@@ -13216,6 +13216,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-08-08 07:13+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -14480,7 +14480,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
"list [-o|-i] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
@@ -14515,6 +14515,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+98 -2
View File
File diff suppressed because it is too large Load Diff
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -14202,7 +14202,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
"list [-o|-i] || search <texto> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
@@ -14237,6 +14237,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+6 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -12648,7 +12648,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
msgid ""
@@ -12678,6 +12678,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+6 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\n"
"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -12076,7 +12076,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
msgid ""
@@ -12106,6 +12106,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+131 -34
View File
File diff suppressed because it is too large Load Diff
+98 -2
View File
File diff suppressed because it is too large Load Diff
+6 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-20 20:59+0200\n"
"POT-Creation-Date: 2023-08-22 09:26+0200\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"
@@ -10908,7 +10908,7 @@ msgid ""
"list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
"<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
"[<script>...] || install|remove|installremove|hold [-q] <script> "
"[<script>...] || upgrade || update"
"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
msgstr ""
msgid ""
@@ -10938,6 +10938,10 @@ msgid ""
" upgrade: upgrade all installed scripts which are obsolete (new "
"version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 (\"end\" to "
"select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
+11 -2
View File
@@ -315,7 +315,9 @@ script_command_init ()
" || autoload|noautoload|toggleautoload <script> [<script>...]"
" || install|remove|installremove|hold [-q] <script> [<script>...]"
" || upgrade"
" || update"),
" || update"
" || up|down [<number>]"
" || go <line>|end"),
N_(" list: list loaded scripts (all languages)\n"
" -o: send list of loaded scripts to buffer "
"(string in English)\n"
@@ -345,6 +347,10 @@ script_command_init ()
" upgrade: upgrade all installed scripts which are obsolete "
"(new version available)\n"
" update: update local scripts cache\n"
" up: move the selected line up by \"number\" lines\n"
" down: move the selected line down by \"number\" lines\n"
" go: select a line by number, first line number is 0 "
"(\"end\" to select the last line)\n"
"\n"
"Without argument, this command opens a buffer with list of scripts.\n"
"\n"
@@ -419,6 +425,9 @@ script_command_init ()
" || installremove %(script_scripts)|%*"
" || hold %(script_scripts)|%*"
" || update"
" || upgrade",
" || upgrade"
" || up 1|2|3|4|5"
" || down 1|2|3|4|5"
" || go 0|end",
&script_command_script, NULL, NULL);
}