ArianaKhit / text-snippets-obsidian

Snippets plugin for obsidian
180 stars 22 forks source link

Enabled snippet expansion in math environments #17

Closed Arax20 closed 2 years ago

Arax20 commented 2 years ago

Fixes #9 by disregarding the latex math environment delimiter $ instead of treating it as a word, which would stop the plugin from searching for the correct word to expand. @y9san9

y9san9 commented 2 years ago

Thanks a lot 🔥🔥

y9san9 commented 2 years ago

It would also nice to add braces and other symbols as delimeters too 🙂

y9san9 commented 2 years ago

like .,;()[]{}\/!?

Arax20 commented 2 years ago

@y9san9 I've pushed that feature. In the future I'll probably implement a setting in the plugin options page where you can input your own delimiters to ignore but this should do for now.

y9san9 commented 2 years ago

Thank you a lot again, wonderful job. I've contacted with the developer and she said that will merge it soon 😁

ArianaKhit commented 2 years ago

@Arax20, Thank you for adding delimiters. I have changed this feature a bit, set $()[]{}<>,.!?;:'"\/ as default and add a new setting in the plugin options page, so it can be modified