autocompletion popup
I must be doing something wrong:
I don't have the cwl package installed, and set "command_completion": "never"
in my user preferences. Nevertheless, a popup window keeps appearing the moment I press ''.
Any ideas what's wrong?
The command_completion setting sets whether to insert the completions entries into the autocomplete-popup and not when the popup should be shown.
The autocomplete is shown, because \ is automatically added into the auto_complete_triggers in the user settings if the cwl package is installed. You can open the user settings and remove the entry, but it will be added when you start ST again. Hence everything works as expected, but maybe not as you desire.
If I understand you correct you want to use cwl autocompletion, but it should not automatically be triggered?
Thanks for the ultra-swift response! I had misunderstood the logics behind the popup mechanism. Ideally, I would like to get rid of the popup (which I find truly distracting) at all. And I do not have cwl installed. (I had it once, but removed it.)
A.
On 07 Apr 2016, at 17:23, Richard Stein [email protected] wrote:
The command_completion setting sets whether to insert the completions entries into the autocomplete-popup and not when the popup should be shown. The autocomplete is shown, because \ is automatically added into the auto_complete_triggers in the user settings if the cwl package is installed. You can open the user settings and remove the entry, but it will be added when you start ST again. Hence everything works as expected, but maybe not as you desire.
If I understand you correct you want to use cwl autocompletion, but it should not automatically be triggered?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/SublimeText/LaTeXTools/issues/678#issuecomment-206951588
p.s.: just removed “\” from auto_complete_triggers in my user settings. This seems to have done the trick. It did not re-appear on restart. Perhaps it was a remnant of my previously installed cwl. A.
On 07 Apr 2016, at 17:28, alexander altland [email protected] wrote:
Thanks for the ultra-swift response! I had misunderstood the logics behind the popup mechanism. Ideally, I would like to get rid of the popup (which I find truly distracting) at all. And I do not have cwl installed. (I had it once, but removed it.)
A.
On 07 Apr 2016, at 17:23, Richard Stein <[email protected] mailto:[email protected]> wrote:
The command_completion setting sets whether to insert the completions entries into the autocomplete-popup and not when the popup should be shown. The autocomplete is shown, because \ is automatically added into the auto_complete_triggers in the user settings if the cwl package is installed. You can open the user settings and remove the entry, but it will be added when you start ST again. Hence everything works as expected, but maybe not as you desire.
If I understand you correct you want to use cwl autocompletion, but it should not automatically be triggered?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/SublimeText/LaTeXTools/issues/678#issuecomment-206951588
Ok then you can just open Preferences >>> Settings - User and delete
{
"characters": "\\",
"selector": "text.tex.latex"
}
under the setting auto_complete_triggers
Edit: adressed the previous answer. PS. If you have now installed cwl anymore it won't be added again.
yep, I had done just this! Thanks, A.
On 07 Apr 2016, at 17:32, Richard Stein [email protected] wrote:
Ok then you can just open Preferences >>> Settings - User and delete
{ "characters": "\\", "selector": "text.tex.latex" }under the setting auto_complete_triggers
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/SublimeText/LaTeXTools/issues/678#issuecomment-206954580
We should probably change the logic to add the auto-complete only if the completion level is not "never". Its probably un-intuitive that these two aspects are entirely disconnected... I'll add it to the TODO list.
This would mean to remove the the auto-complete trigger, because it is only added once.
Right, but ST settings have some sort of observer functionality so you can have a function called when a specific setting is changed. We haven't used it so far because we haven't really had a need to, but this would be an instance where it might make sense.