Bug 157461 - cmd completion mode keeps the current completion mode in unpleasant places in cite/ref commands
Summary: cmd completion mode keeps the current completion mode in unpleasant places in...
Status: RESOLVED LATER
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-08 22:36 UTC by Thomas Braun
Modified: 2009-01-06 23:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Braun 2008-02-08 22:36:24 UTC
Version:           2.0.0 (using KDE 3.5.4)
Installed from:    Debian stable Packages
OS:                Linux

Sub-problem of #112735.

Reproduce:
- Take a project with a bib file
- type \cite{} (without using cmd. completion)
- place the cursor before the {
- Press STRG + SPACE, cmd. completion including \cite{} pop ups
- Move cursor one char to the right
-> Still cmd. completion list but it should show ref/cite completion list.
Comment 1 Vincenzo Ciancia 2008-02-09 11:20:13 UTC
To work around this bug, I tried to edit /usr/share/apps/kile/complete/tex/latex-document.cwl. I commented the following two lines 

#\cite{keylist}
#\cite[text]{keylist}

and added, immediately after, a single line containing 

\cite

without braces or anything else. This will not show any hint for \cite, nor open and close the braces, but it is in my opinion much nicer than the current situation.
Comment 2 Vincenzo Ciancia 2008-02-14 15:59:50 UTC
Could this be considered as a quick fix, and incorporated into kile? Many people will try kile and just say it does not complete bibitems.
Comment 3 Thomas Braun 2008-02-15 22:33:26 UTC
Hi,

I had just a look at this issue again and it seems that there is little what we can do for the KDE 3.x version of kile.

The behaviour is a feature of the kate code completion, so a small fix is not possible.

And it is just a matter of your typing style if you hit this bug or not.

- Type \ref
- Press Enter
-> the correct list popups

Only if you move your cursor around you hit this bug.

Bye,
Thomas
Comment 4 Thomas Braun 2009-01-06 23:22:22 UTC
This bug only applies to KDE3 version of kile, in KDE4 we will have to rewrite the codecompletion completely.

Therefore I close this bug report.

bye,
Thomas

PS: If you disagree feel free to reopen it.