SUMMARY When generating autocomplete suggestions, consider words of min-autocomplete-length (default 3 chars) as valid candidates and make the preferred candidate. Currently autocompletion is frustrating enough when typing text with explicit line breaks that I *almost* want to turn it off. STEPS TO REPRODUCE 1. Start a new document and type in a few words including 'the' and these' 2. Write 'the' 3. Press <Enter> to insert an explicit line-break OBSERVED RESULT 'the' is "completed" to 'these' EXPECTED RESULT Line break, or failing that autocomplete to 'the' (no effect except to close autocompletion) Exact behaviour here is debatable, but personally I find "completion" of a valid word when I just wanted to insert a line-break to be annoying!
Perhaps it would make sense to have some completion support using the current spell checker. One can the insert a word itself if it is ok or all known suggestions. e.g. like the KateKeywordCompletionModel does atm for keywords from the hl files.
Will take care of this, seems like a nifty little feature.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/544
Could you try my merge request?
Git commit 6bc40ca3629da7879d4d8e5643e1a0df02a1f980 by Christoph Cullmann. Committed on 01/05/2023 at 14:15. Pushed by cullmann into branch 'word/spelling'. ensure words that are ok spell check wise always end up in the completion M +16 -0 src/completion/katewordcompletion.cpp https://invent.kde.org/frameworks/ktexteditor/commit/6bc40ca3629da7879d4d8e5643e1a0df02a1f980