Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursor not working properly #57

Closed
julianmueller opened this issue Jul 5, 2022 · 3 comments
Closed

cursor not working properly #57

julianmueller opened this issue Jul 5, 2022 · 3 comments

Comments

@julianmueller
Copy link

Hi,
in latest update of the shorthands there are these two tips:

Tip2: Use "#cursor" within snippet to set the cursor position after replacement
Tip3: Use "#tab" within snippet for cases of multiple parameters. e.g. bi:\binom{#cursor}{#tab}, after keying bi and spacebar, the shorthand will expand into \binom{|}{#tab} with cursor in the first brackets. After keying the values in first brackets, press tab to jump to the #tab location to continue typing.

But this does not work properly. I used the example bi:\binom{#cursor}{#tab} but the autocomplete made \binom{#{#tab}. Id same goes for this example: cs:\cos(#cursor); -> \cos(#.

Still a great plugin tho!

@joeyuping
Copy link
Owner

Hi !

Thank you!
However, I am not so sure whether it was version difference or... as I am unable to replicate the situation as you mentioned.... Does the problem still persist?

@julianmueller
Copy link
Author

Hi,
i just updated to the latest version of your plugin, and unfortunately, the bug still exists for me. I disabled all other plugins and styles and tried with only one shorthand command in config file, but no luck. I also tried turning off all other settings for your plugin.

eg with the suggestion from #58, i get ([SPACE] means the keystroke):

vmat:\begin{vmatrix}#cursor\end{vmatrix};
$$\vmat[SPACE]$$ -> $$\begin{vmatrix}#end{vmatrix}$$

I dont know why this happens.

@joeyuping
Copy link
Owner

oh!!

I found the issue! Please try v2.3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants