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 Request] Disable snippets when writing Latex commands #68

Open
mscott99 opened this issue Oct 18, 2022 · 3 comments
Open

[Feature Request] Disable snippets when writing Latex commands #68

mscott99 opened this issue Oct 18, 2022 · 3 comments

Comments

@mscott99
Copy link

If the cursor is positioned as “\blahblahbl”, disable the snippet completion. This could be done with a regex that checks that there is a backslash followed by text not separated by spaces.

The reason for this is to be able to write things manually for less-often used symbols. For example, \land triggers the “and” snippet for me, so I write the “d” first and then the rest before it to avoid triggering the snippet. I know that this can be fixed by customizing the snippets shortcuts, yet I think this would still be a powerful feature.

@artisticat1
Copy link
Owner

Sure, I can consider this for a future release.

In the meantime you can simply use Ctrl+Z to undo the expansion of the snippet. This will take you back to \land.

@artisticat1
Copy link
Owner

Making the "and" snippet a word boundary snippet will also stop it from triggering when typing \land.

@mscott99
Copy link
Author

Oh nice thanks for the tips!

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