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

[FEATURE] Option to disable snippets when typing arguments into curly brackets? #378

Open
ofisurr opened this issue Jan 20, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@ofisurr
Copy link

ofisurr commented Jan 20, 2025

New Text Document.txt

Description of the Problem

When trying to type the string in the curly brackets here as \color{lightgreen}, it detects ee as a snippet, making the output \color{lightgre^{ n }}.

Description of the Solution

Perhaps an option where, whenever I'm typing in brackets, snippets are disabled all together?

I've attached my snippets file just in case.

Image

@superle3
Copy link
Contributor

superle3 commented Feb 1, 2025

Hello,
this has been fixed for the latest version and will be probably be added in the next release.

As for your suggestion, I don't think that it is usefull.
Most environments inside curly braces need to be math since they are interpreted as math.
For example subscript, superscript and fractions.

Currently a set amount of text environments are seen as text like \text.
\color was missing from this list and has now been added.

Still thank you for pointing out this bug.

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

No branches or pull requests

2 participants