core: do not automatically add a space when completing "nick:" at the beginning of command line
The space can be added in option weechat.completion.nick_completer (this is now the default value of the option): /set weechat.completion.nick_completer ": "
This commit is contained in:
parent
4d9fd4c4aa
commit
1a34f87163
@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
|||||||
|
|
||||||
New features::
|
New features::
|
||||||
|
|
||||||
|
* core: do not automatically add a space when completing "nick:" at the beginning of command line (the space can be added in option weechat.completion.nick_completer)
|
||||||
* core: add default keys kbd:[Ctrl+F11]/kbd:[Ctrl+F12] to scroll up/down one page in nicklist (same action as kbd:[F11]/kbd:[F12])
|
* core: add default keys kbd:[Ctrl+F11]/kbd:[Ctrl+F12] to scroll up/down one page in nicklist (same action as kbd:[F11]/kbd:[F12])
|
||||||
* core: add command line option "-t" (or "--temp-dir") to create a temporary WeeChat home (deleted on exit)
|
* core: add command line option "-t" (or "--temp-dir") to create a temporary WeeChat home (deleted on exit)
|
||||||
* api: add functions string_base_encode and string_base_decode, remove functions string_encode_base64 and string_decode_base64
|
* api: add functions string_base_encode and string_base_decode, remove functions string_encode_base64 and string_decode_base64
|
||||||
|
@ -20,6 +20,20 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
|
|||||||
[[v2.4]]
|
[[v2.4]]
|
||||||
== Version 2.4 (under dev)
|
== Version 2.4 (under dev)
|
||||||
|
|
||||||
|
[[v2.4_nick_completer]]
|
||||||
|
=== Nick completer
|
||||||
|
|
||||||
|
A space is not added automatically any more when you complete a nick at the
|
||||||
|
beginning of command line (expected result is: "nick: ").
|
||||||
|
|
||||||
|
The default value of option weechat.completion.nick_completer has been changed
|
||||||
|
to add the space by default, so you may have to run this command if you want
|
||||||
|
the space to be added automatically:
|
||||||
|
|
||||||
|
----
|
||||||
|
/set weechat.completion.nick_completer ": "
|
||||||
|
----
|
||||||
|
|
||||||
[[v2.4_api_base64_functions]]
|
[[v2.4_api_base64_functions]]
|
||||||
=== Base64 API functions
|
=== Base64 API functions
|
||||||
|
|
||||||
|
@ -420,7 +420,7 @@
|
|||||||
** Beschreibung: pass:none[fügt eine Zeichenkette hinter die Nick-Vervollständigung ein (sofern ein Nickname das erste Wort in der Kommandozeile ist)]
|
** Beschreibung: pass:none[fügt eine Zeichenkette hinter die Nick-Vervollständigung ein (sofern ein Nickname das erste Wort in der Kommandozeile ist)]
|
||||||
** Typ: Zeichenkette
|
** Typ: Zeichenkette
|
||||||
** Werte: beliebige Zeichenkette
|
** Werte: beliebige Zeichenkette
|
||||||
** Standardwert: `+":"+`
|
** Standardwert: `+": "+`
|
||||||
|
|
||||||
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
||||||
** Beschreibung: pass:none[es wird ausschließlich mit dem ersten, passendem Nick-Namen vervollständigt]
|
** Beschreibung: pass:none[es wird ausschließlich mit dem ersten, passendem Nick-Namen vervollständigt]
|
||||||
|
@ -420,7 +420,7 @@
|
|||||||
** description: pass:none[string inserted after nick completion (when nick is first word on command line)]
|
** description: pass:none[string inserted after nick completion (when nick is first word on command line)]
|
||||||
** type: string
|
** type: string
|
||||||
** values: any string
|
** values: any string
|
||||||
** default value: `+":"+`
|
** default value: `+": "+`
|
||||||
|
|
||||||
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
||||||
** description: pass:none[complete only with first nick found]
|
** description: pass:none[complete only with first nick found]
|
||||||
|
@ -420,7 +420,7 @@
|
|||||||
** description: pass:none[chaîne insérée après la complétion du pseudo (quand le pseudo est le premier mot sur la ligne de commande)]
|
** description: pass:none[chaîne insérée après la complétion du pseudo (quand le pseudo est le premier mot sur la ligne de commande)]
|
||||||
** type: chaîne
|
** type: chaîne
|
||||||
** valeurs: toute chaîne
|
** valeurs: toute chaîne
|
||||||
** valeur par défaut: `+":"+`
|
** valeur par défaut: `+": "+`
|
||||||
|
|
||||||
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
||||||
** description: pass:none[compléter seulement avec le premier pseudo trouvé]
|
** description: pass:none[compléter seulement avec le premier pseudo trouvé]
|
||||||
|
@ -420,7 +420,7 @@
|
|||||||
** descrizione: pass:none[stringa inserita dopo il completamento del nick (quando il nick è la prima parola sulla riga di comando)]
|
** descrizione: pass:none[stringa inserita dopo il completamento del nick (quando il nick è la prima parola sulla riga di comando)]
|
||||||
** tipo: stringa
|
** tipo: stringa
|
||||||
** valori: qualsiasi stringa
|
** valori: qualsiasi stringa
|
||||||
** valore predefinito: `+":"+`
|
** valore predefinito: `+": "+`
|
||||||
|
|
||||||
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
||||||
** descrizione: pass:none[completa solo con il primo nick trovato]
|
** descrizione: pass:none[completa solo con il primo nick trovato]
|
||||||
|
@ -420,7 +420,7 @@
|
|||||||
** 説明: pass:none[ニックネーム補完の後に追加する文字列 (ニックネームがコマンドラインの最初にある場合)]
|
** 説明: pass:none[ニックネーム補完の後に追加する文字列 (ニックネームがコマンドラインの最初にある場合)]
|
||||||
** タイプ: 文字列
|
** タイプ: 文字列
|
||||||
** 値: 未制約文字列
|
** 値: 未制約文字列
|
||||||
** デフォルト値: `+":"+`
|
** デフォルト値: `+": "+`
|
||||||
|
|
||||||
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
||||||
** 説明: pass:none[最初に見つかったニックネームだけを補完]
|
** 説明: pass:none[最初に見つかったニックネームだけを補完]
|
||||||
|
@ -420,7 +420,7 @@
|
|||||||
** opis: pass:none[ciąg wstawiany po dopełnionym nicku (kiedy nick jest pierwszym słowem w linii poleceń)]
|
** opis: pass:none[ciąg wstawiany po dopełnionym nicku (kiedy nick jest pierwszym słowem w linii poleceń)]
|
||||||
** typ: ciąg
|
** typ: ciąg
|
||||||
** wartości: dowolny ciąg
|
** wartości: dowolny ciąg
|
||||||
** domyślna wartość: `+":"+`
|
** domyślna wartość: `+": "+`
|
||||||
|
|
||||||
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
* [[option_weechat.completion.nick_first_only]] *weechat.completion.nick_first_only*
|
||||||
** opis: pass:none[dopełniaj tylko pierwszym znalezionym nickiem]
|
** opis: pass:none[dopełniaj tylko pierwszym znalezionym nickiem]
|
||||||
|
@ -4175,7 +4175,7 @@ config_weechat_init_options ()
|
|||||||
"nick_completer", "string",
|
"nick_completer", "string",
|
||||||
N_("string inserted after nick completion (when nick is first word on "
|
N_("string inserted after nick completion (when nick is first word on "
|
||||||
"command line)"),
|
"command line)"),
|
||||||
NULL, 0, 0, ":", NULL, 0,
|
NULL, 0, 0, ": ", NULL, 0,
|
||||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||||
config_completion_nick_first_only = config_file_new_option (
|
config_completion_nick_first_only = config_file_new_option (
|
||||||
weechat_config_file, ptr_section,
|
weechat_config_file, ptr_section,
|
||||||
|
@ -431,6 +431,7 @@ gui_completion_list_add (struct t_gui_completion *completion, const char *word,
|
|||||||
CONFIG_STRING(config_completion_nick_completer));
|
CONFIG_STRING(config_completion_nick_completer));
|
||||||
completion_word->word = strdup (buffer);
|
completion_word->word = strdup (buffer);
|
||||||
arraylist_insert (completion->list, index, completion_word);
|
arraylist_insert (completion->list, index, completion_word);
|
||||||
|
completion->add_space = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user