From 3b26d6750eceb5ff5208c8c77d4ffe944addb23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 4 Jul 2023 18:41:31 +0200 Subject: [PATCH] core: add key ctrl-backspace in /help key (closes #1975) --- ChangeLog.adoc | 1 + po/cs.po | 6 ++- po/de.po | 90 ++++++++++++++++++++++++++++++++++++------ po/es.po | 6 ++- po/fr.po | 13 +++++- po/hu.po | 6 ++- po/it.po | 6 ++- po/ja.po | 6 ++- po/pl.po | 6 ++- po/pt.po | 6 ++- po/pt_BR.po | 6 ++- po/ru.po | 6 ++- po/sr.po | 71 ++++++++++++++++++++++++++++++++- po/tr.po | 6 ++- po/weechat.pot | 6 ++- src/core/wee-command.c | 5 +++ 16 files changed, 219 insertions(+), 27 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 7af2b3182..768b6d957 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -17,6 +17,7 @@ Bug fixes:: * core: don't send "key_pressed" signal again for the same key press (issue #1976) * core: don't send "key_combo_*" signals for incomplete keys (issue #1976) + * core: add key ctrl-backspace in /help key (issue #1975) Tests:: diff --git a/po/cs.po b/po/cs.po index 42ca777aa..555b01b0b 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: 2023-06-17 11:44+0200\n" +"POT-Creation-Date: 2023-07-04 18:38+0200\n" "PO-Revision-Date: 2023-06-25 00:48+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -2043,6 +2043,10 @@ msgid "" "then k), and then press the key to bind: this will insert key name in " "command line.\n" "\n" +"For some keys you might need to use /debug key, this displays the raw key " +"code that can be used (for example the key ctrl+backspace could be ctrl-h or " +"ctrl-?, depending on your terminal and other settings).\n" +"\n" "Modifiers allowed (in this order when multiple are used):\n" " meta- (alt key)\n" " ctrl- (control key)\n" diff --git a/po/de.po b/po/de.po index 54d239449..bd11a72cb 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: 2023-06-17 11:44+0200\n" +"POT-Creation-Date: 2023-07-04 18:38+0200\n" "PO-Revision-Date: 2023-06-23 07:41+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -2515,6 +2515,71 @@ msgstr "" "unbindctxt || reset || resetctxt || " "resetall -yes [] || missing [] || legacy [...]" +#, fuzzy +#| msgid "" +#| " list: list all current keys\n" +#| "listdefault: list default keys\n" +#| " listdiff: list differences between current and default keys (keys " +#| "added, redefined or deleted)\n" +#| " context: name of context (\"default\" or \"search\")\n" +#| " bind: bind a command to a key or display command bound to key (for " +#| "context \"default\")\n" +#| " bindctxt: bind a command to a key or display command bound to key, for " +#| "given context\n" +#| " command: command (many commands can be separated by semicolons)\n" +#| " unbind: remove a key binding (for context \"default\")\n" +#| " unbindctxt: remove a key binding for given context\n" +#| " reset: reset a key to default binding (for context \"default\")\n" +#| " resetctxt: reset a key to default binding, for given context\n" +#| " resetall: restore bindings to the default values and delete ALL " +#| "personal bindings (use carefully!)\n" +#| " missing: add missing keys (using default bindings), useful after " +#| "installing new WeeChat version\n" +#| " legacy: display new name for legacy keys\n" +#| "\n" +#| "When binding a command to a key, it is recommended to use key alt+k (or " +#| "Esc then k), and then press the key to bind: this will insert key name in " +#| "command line.\n" +#| "\n" +#| "Modifiers allowed (in this order when multiple are used):\n" +#| " meta- (alt key)\n" +#| " ctrl- (control key)\n" +#| " shift- (shift key, can only be used with key names below)\n" +#| "\n" +#| "Key names allowed: f0 to f20, home, insert, delete, end, backspace, pgup, " +#| "pgdn, up, down, right, left, tab, return, comma, space.\n" +#| "\n" +#| "Combo of keys must be separated by a comma.\n" +#| "\n" +#| "For context \"mouse\" (possible in context \"cursor\" too), key has " +#| "format: \"@area:key\" or \"@area1>area2:key\" where area can be:\n" +#| " *: any area on screen\n" +#| " chat: chat area (any buffer)\n" +#| " chat(xxx): chat area for buffer with name \"xxx\" (full name including " +#| "plugin)\n" +#| " bar(*): any bar\n" +#| " bar(xxx): bar \"xxx\"\n" +#| " item(*): any bar item\n" +#| " item(xxx): bar item \"xxx\"\n" +#| "Wildcard \"*\" is allowed in key to match many mouse events.\n" +#| "A special value for command with format \"hsignal:name\" can be used for " +#| "context mouse, this will send the hsignal \"name\" with the focus " +#| "hashtable as argument.\n" +#| "Another special value \"-\" can be used to disable key (it will be " +#| "ignored when looking for keys).\n" +#| "\n" +#| "Examples:\n" +#| " key alt-r to jump to #weechat IRC channel:\n" +#| " /key bind meta-r /buffer #weechat\n" +#| " restore default binding for key alt-r:\n" +#| " /key reset meta-r\n" +#| " key meta-v then f1 to run /help:\n" +#| " /key bind meta-v,f1 /help\n" +#| " key \"tab\" to stop search in buffer:\n" +#| " /key bindctxt search tab /input search_stop\n" +#| " middle button of mouse on a nick to retrieve info on nick:\n" +#| " /key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info " +#| "${nick}" msgid "" " list: list all current keys\n" "listdefault: list default keys\n" @@ -2540,6 +2605,10 @@ msgid "" "then k), and then press the key to bind: this will insert key name in " "command line.\n" "\n" +"For some keys you might need to use /debug key, this displays the raw key " +"code that can be used (for example the key ctrl+backspace could be ctrl-h or " +"ctrl-?, depending on your terminal and other settings).\n" +"\n" "Modifiers allowed (in this order when multiple are used):\n" " meta- (alt key)\n" " ctrl- (control key)\n" @@ -5605,20 +5674,17 @@ msgid "" "%sError: %s, line %d: invalid config version: \"%s\" => rest of file is " "IGNORED, default options are used" msgstr "" -"%sFehler: %s, Zeile %d: Ungültige Konfigurationsversion: \"%s\" => Der Rest" -" der Datei wird IGNORIERT, es werden Standardoptionen verwendet" +"%sFehler: %s, Zeile %d: Ungültige Konfigurationsversion: \"%s\" => Der Rest " +"der Datei wird IGNORIERT, es werden Standardoptionen verwendet" #, c-format -#| msgid "" -#| "%sWarning: %s, version read (%d) is newer than supported version (%d), " -#| "options may be broken!" msgid "" "%sError: %s, version read (%d) is newer than supported version (%d) => rest " "of file is IGNORED, default options are used" msgstr "" -"%sFehler: %s, verwendete Version (%d) ist neuer als die unterstützte Version" -" (%d) => Der Rest der Datei wird IGNORIERT, es werden Standardoptionen" -" verwendet" +"%sFehler: %s, verwendete Version (%d) ist neuer als die unterstützte Version " +"(%d) => Der Rest der Datei wird IGNORIERT, es werden Standardoptionen " +"verwendet" #, c-format msgid "%sWarning: %s, line %d: option outside section: %s" @@ -16026,8 +16092,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat" msgid "" "list|listfull|listdefault || add|addoff|addreplace " -"[\"\" [\"\" [\"\" [\"\" [\"<" -"return_code>\" [\"\"]]]]]] " +"[\"\" [\"\" [\"\" [\"\" [\"\" [\"\"]]]]]] " "|| addinput [] || input|output|recreate || set