obsidian-latex-suite icon indicating copy to clipboard operation
obsidian-latex-suite copied to clipboard

[Feature Request] Disable snippets when writing Latex commands

Open mscott99 opened this issue 1 year ago • 3 comments

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.

mscott99 avatar Oct 18 '22 21:10 mscott99

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 avatar Oct 18 '22 21:10 artisticat1

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

artisticat1 avatar Oct 18 '22 21:10 artisticat1

Oh nice thanks for the tips!

mscott99 avatar Oct 20 '22 18:10 mscott99