Sublime Forum

FORCE tab to insert completion

#1

I’m trying to do this, and it’s really killing me.

I’m trying to make the tab key FORCE a sublime completion. I have the following sublime completion set up in a .sublime-completions file:

{ "trigger": "fr", "contents": "\\frac{$1}{$2}"},
{ "trigger": "sq", "contents": "\\\\sqrt{$1}"},
{ "trigger": "deg", "contents": "^{\\circ}"},

Here’s the issue: when I type fr and press the tab key, it used to expanding into \frac{}{}. However, now it’s giving me issues. When I press tab, it becomes frac. And then I press it again, it becomes fraction. And so on, until it becomes frac{$1}{$2.

Same thing happens with sq. It expands instantly to sqrt{$1 when I press tab.

But with deg, it expands to ^{\circ} as it to be expected.

I’m not sure why this is happening. Could someone please help? This really is driving me nuts.

0 Likes

#2

I just restarted Sublime Text, and it started working like normal again. Didn’t know Sublime Text ever needed to be restarted. Will monitor this situation and see if it happens again, and then update it here.

0 Likes