diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-08-22 09:34:41 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-08-22 09:34:41 +0200 |
commit | fdebcf690bcd08cd9dfa48901a9b58804a1a2b15 (patch) | |
tree | 7135427b13b19f1b7645aa5ae620f94dd34fe15e /src/plugins/script/script-command.c | |
parent | 763e8bd3a0ea6fceb8ecf773f1dbc145cddf1282 (diff) | |
download | weechat-fdebcf690bcd08cd9dfa48901a9b58804a1a2b15.zip |
script: add parameters up/down/go in `/help script` and command completion
Diffstat (limited to 'src/plugins/script/script-command.c')
-rw-r--r-- | src/plugins/script/script-command.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/plugins/script/script-command.c b/src/plugins/script/script-command.c index 483f92268..9530fcd1d 100644 --- a/src/plugins/script/script-command.c +++ b/src/plugins/script/script-command.c @@ -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); } |