nburdick / lilykde

Automatically exported from code.google.com/p/lilykde
0 stars 0 forks source link

Autocomplete overwrites subsequent text #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an empty document, type "c4 c" (without the quotes)
2. Move the cursor to the 3rd column (right before the 2nd c)
3. Type "\rep" then activate autocomplete and select "\repeat"

What is the expected output? What do you see instead?
I'd expect to have "c4 \repeatc"
Instead, the second c is overwritten, resulting in "c4 \repeat"

What version of the product are you using? On what operating system?
0.7.17 (KDE 4.3.2) Ubuntu Karmic

Original issue reported on code.google.com by csnyd...@mvpsoft.com on 3 Dec 2009 at 2:24

GoogleCodeExporter commented 8 years ago
This is a "feature" of the KatePart autocomplete implementation. Don't know how 
to
change it. Sometimes this behaviour is useful, e.g. when changing the name of a 
variable.

Maybe there's a way to change this behaviour, will look into it.

Original comment by wbsoft on 3 Dec 2009 at 2:32

GoogleCodeExporter commented 8 years ago
Thanks so much - I continue to be impressed by your responsiveness.

FWIW, the other editor I use on a regular basis that does autocomplete 
(Eclipse) does
not overwrite text. While I can see how such a feature (if it is indeed a 
feature in
KatePart rather than a bug) could be useful in some circumstances, it seems to 
me
that Eclipse's behavior is more user-friendly (I do have insert-mode enabled, 
after
all). Though seven years of using Eclipse would give me a bit of a bias, I 
suppose...

Original comment by csnyd...@mvpsoft.com on 3 Dec 2009 at 2:38

GoogleCodeExporter commented 8 years ago
I noticed that KatePart of KDE 4.2 does not overwrite the text. In KDE 4.3 
"word"
characters (letters, digits, underscore) are overwritten. But the KatePart
autocompletion feature is quite powerful, I think it is possible to change it 
so that
no text is deleted.

Original comment by wbsoft on 10 Dec 2009 at 6:49