Pine icon indicating copy to clipboard operation
Pine copied to clipboard

Auto Complete won't work when typing in single line $$

Open WuYuanhun opened this issue 6 years ago • 4 comments

Trying to use latex auto complete, it works when typing as plain text. It works in multi-line $$. But when I try to type between in single line $$, the auto complete just does not pop out.

For example, auto complete works in:

$$
\A
$$

but does not work in :

$\A  $

WuYuanhun avatar Apr 23 '19 03:04 WuYuanhun

Update the trigger conditions. The auto complete only works when the character beside '' is in [ ' ', '\n', '\r'].

WuYuanhun avatar Apr 23 '19 06:04 WuYuanhun

Start to wonder if this is a feature other than bug...

WuYuanhun avatar Apr 23 '19 06:04 WuYuanhun

You’re right, there needs to be a whitespace character to the right otherwise autocomplete won’t trigger, this is by design. But this should not occur inside inline maths, since it’s very common to be typing LaTeX commands inside $$ without whitespace.

lukakerr avatar Apr 23 '19 06:04 lukakerr

I pull a merge #58 to fix it. And test on my Mac successfully , (which may have little possibility to cause any problem because only changed a line of code) Feel free to leave feedback Thanks for review and Pine!

WuYuanhun avatar Apr 28 '19 13:04 WuYuanhun