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

[BUG] The default setting cannot treat "\bar" and similar commands properly #309

Open
KyleYoung-ymj opened this issue Jun 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@KyleYoung-ymj
Copy link

First of all, many thanks for developing this plugin. It really helps a lot.

I encounter the bug when I try to type something like x_{1} \cdot \bar{x_{2}}. I cannot type this easily with the default snippet settings, and I am not aware of any elegant workaround.

Specifically, these are the default snippets for the \bar command:
{trigger: "([a-zA-Z])bar", replacement: "\\bar{[[0]]}", options: "rmA"},
{trigger: "bar", replacement: "\\bar{$0}$1", options: "mA"},

As a result, if I type bar after x_{1} \cdot it unexpectedly becomes x_{1}\bar{\cdot}. On the other hand, it is not possible to type something like x_{2}bar to yield \bar{x_{2}}.

Ideally, typing bar after a command like \cdot should not trigger the suffix operation for \bar, but I do not know how to change the settings to this end.

Thank you very much for your attention and help.

@KyleYoung-ymj KyleYoung-ymj added the bug Something isn't working label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant