D22477: With auto completion don't show completions that don't match from beginning of typed word
Ahmad Samir
noreply at phabricator.kde.org
Tue Jul 16 23:28:22 BST 2019
ahmadsamir added a comment.
In D22477#496214 <https://phabricator.kde.org/D22477#496214>, @brauch wrote:
> I'm not sure if this solves the right problem.
>
> Where I notice this issue a lot is when typing "return". The keyword completion suggests "return", and when I want a newline, I complete the "return" first. This doesn't affect C++ (because of the trailing ";"), but it does affect other languages.
>
> I think this is pretty much the same issue. Maybe it should be solved by hiding the completion window if it was not explicitly invoked if there is any entry matching what you currently typed?
>
> Then typing Foo would not have the completion window open at all in the described case (thus solving your problem, as well as mine), and if you still wanted to complete BarFoo, you would press Ctrl+Space.
In D22477#496214 <https://phabricator.kde.org/D22477#496214>, @brauch wrote:
> I'm not sure if this solves the right problem.
>
> Where I notice this issue a lot is when typing "return". The keyword completion suggests "return", and when I want a newline, I complete the "return" first. This doesn't affect C++ (because of the trailing ";"), but it does affect other languages.
>
> I think this is pretty much the same issue. Maybe it should be solved by hiding the completion window if it was not explicitly invoked if there is any entry matching what you currently typed?
Great idea. Done.
> Then typing Foo would not have the completion window open at all in the described case (thus solving your problem, as well as mine), and if you still wanted to complete BarFoo, you would press Ctrl+Space.
https://phabricator.kde.org/D22500
REPOSITORY
R39 KTextEditor
REVISION DETAIL
https://phabricator.kde.org/D22477
To: ahmadsamir, #ktexteditor, cullmann, dhaumann, #kdevelop, kossebau, mwolff, kfunk
Cc: brauch, kwrite-devel, kde-frameworks-devel, LeGast00n, sbergeron, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190716/00b25cc2/attachment.html>
More information about the KWrite-Devel
mailing list