diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2021-01-19 16:38:23 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2021-01-19 16:38:23 +0300 |
| commit | efb6fca0685c8a22a02a8cfadb8f3f03a86290d0 (patch) | |
| tree | ac8e09ef63098f11ae932f8b64cb0feff0338167 | |
| parent | 3bb576edde80b5e5c6f499b50106ceb0c1784761 (diff) | |
rc spell: Remove `:spell-replace` default value
This commit removes the default prompt value from the `spell-replace`
command.
Currently, running the command after selecting a misspelled word
might not allow the editor to propose alternative spellings because
it completes upon whatever is inserted into the prompt. If the words
returned by `aspell` are too different from the currently misspelled
word, no candidates are shown.
For example, selecting “unanymously” and running `:spell-replace`
will not show any candidates under the current implementation (the
‘y’ probably trips the fuzzy-matcher).
The user develops a habit of clearing the prompt every time, because
that's the only way to make sure all suggestions from `aspell` are
visible, so the editor might as well not have any default value for
`:spell-replace`.
| -rw-r--r-- | rc/tools/spell.kak | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/rc/tools/spell.kak b/rc/tools/spell.kak index 65804de0..1e9e4db4 100644 --- a/rc/tools/spell.kak +++ b/rc/tools/spell.kak @@ -148,7 +148,6 @@ define-command \ -docstring "Suggest replacement words for the current selection, against the last language used by the spell-check command" \ spell-replace %{ prompt \ - -init %val{selection} \ -shell-script-candidates %{ options="" if [ -n "$kak_opt_spell_last_lang" ]; then |
