summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorTim Allen <screwtape@froup.com>2020-09-21 21:07:35 +1000
committerTim Allen <screwtape@froup.com>2020-09-21 21:07:35 +1000
commitf75f484b842daf9f548f26755d7ee3c9b7346eeb (patch)
treec42e6b4a46cda7daf2e7188b655d5af2436c2491 /rc/tools/python
parentdbd7e4da79ff59a63be03c580d3f396657199596 (diff)
spell.kak: Present spelling suggestions with :prompt
Previously, spelling suggestions were presented with the :menu command, requiring the user to cycle through wild and fanciful alternatives to get to the one they wanted. Now, we present suggestions with the :prompt command, which allows the user to type to filter down the list, and also to customise the replacement after they've chose it (perhaps to fix capitalisation or add apostrophe-S). We also use the mispelled word as the initial content of the prompt. That filters out the wildest alternatives by default, and allows the user to edit the original word instead of forcing them to choose from among the suggestions. To get the full list of suggestions, it's easy enough to just backspace until the word you want appears in the list.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions