Bug 398601 - Kile does not remove already typed letters while tab-completing reference
Summary: Kile does not remove already typed letters while tab-completing reference
Status: CONFIRMED
Alias: None
Product: kile
Classification: Applications
Component: editor (show other bugs)
Version: 2.9.92
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-14 03:57 UTC by Kishore Gopalakrishnan
Modified: 2019-11-26 15:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2018-09-14 03:57:06 UTC
Steps to reproduce:
1. In a .tex file, define a label with '\label{eq: Faraday}'.
2. Save the document. 
3. Type '\ref{eq: F' and press 'tab'

Observed result:
The reference is completed as '\ref{eq: Feq: Faraday'.

Expected result:
Kile should take into account the already typed letters while tab-completing.
Comment 1 Kishore Gopalakrishnan 2018-09-14 06:33:36 UTC
This only happens if you press tab before the 'suggestion box' appears for completion. If you wait for the suggestion box to appear, and then press tab, the expected behaviour occurs.
Comment 2 Christoph Feck 2018-09-14 13:09:21 UTC
Does the same happen in Kate? There is also a setting 'Remove tail on complete' in Editor settings, which might affect this behaviour.
Comment 3 Kishore Gopalakrishnan 2018-09-14 13:34:22 UTC
(In reply to Christoph Feck from comment #2)
> Does the same happen in Kate? There is also a setting 'Remove tail on
> complete' in Editor settings, which might affect this behaviour.

I can reproduce this with the autocomplete options in 'Editor > Editing > Autocompletion' completely disabled, and only 'Kile > Complete > Auto completion for LaTeX markup' enabled. I can't reproduce this in Kate.

If I disable the 'autocompletion for LaTeX markup' option leaving the other autocomplete stuff enabled, I still get suggestions (I assume Kile picks them up from words previously used in the document) and tab-completing with them works as expected.
Comment 4 John S. 2019-11-26 15:26:14 UTC
I'm seeing this behavior as well, except the expected behavior does not occur if I wait for the suggestion box. This bug happens with command autocompletion, too; if I type "\beg" and press tab, I get "\beg\begin" inserted into the editor.