Bug 288660 - Kate autocompletion appears too often
Summary: Kate autocompletion appears too often
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on: 320955
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-10 14:52 UTC by Daniel Thaler
Modified: 2013-06-27 10:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.11
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Thaler 2011-12-10 14:52:21 UTC
Version:           unspecified (using KDE 4.7.3) 
OS:                Linux

Kate autocompletion appears too often:
Specifically, I find it highly annoying when I'm editing in the middle of a word and autocomplete pops up.
Another truly awful situation is when I'm replacing words via cut and paste and the autocomplete thing pops up after every paste action. (Aside: The situation was the following: I had a variable that was used for 2 different things. Then I decided each use deserved it's own name, so I went through my function and replaced half of the occurrences with the new name. And every single time the stupid autocomplete thing popped up and got in my way.)

It really not wanted in those situations, and should only appear when I manually type characters at the end of a word.

Reproducible: Always



Expected Results:  
Autocomplete should only appear when I'm adding characters to the end of a word.

OS: Linux (x86_64) release 3.1.0
Compiler: x86_64-pc-linux-gnu-gcc
Comment 1 Christoph Feck 2011-12-12 11:11:50 UTC
> when I'm editing in the middle of a word

The problem here is that kate does not remove the tail of the old word when actually initiating the auto completion. Example: Let's say I am in the middle of the word "Qt::FastTransformation". When I delete the "Fast" part, I type "Smo", so that it offers "SmoothTransformation" as possible auto completion. When I now hit Enter to accept that, I get "Qt:SmoothTransformationTransformation", which is not what I had expected.
Comment 2 Dominik Haumann 2011-12-13 08:08:13 UTC
True, see comment #1.
I also think the tail of the current word should be removed.
Comment 3 Dominik Haumann 2013-06-27 10:35:38 UTC
I consider this bug as fixed:
- Paste never launches auto-complete in KDE >= 4.11
- The word completion plugin now removes the 2nd "Transformation" term