mava / Nova-LaTeX

LaTeX Support for Nova
https://extensions.panic.com/extensions/info.varisco/info.varisco.LaTeX/
MIT License
3 stars 0 forks source link

Adding auto-closing for the math environment `$...$` #6

Open 0804d23d opened 2 years ago

0804d23d commented 2 years ago

Do you think you can add support for auto-closing the math environments like $...$ and \[...\]?

When using Atom, I was able to use the package latexer to enable auto-closing of \[\], and use the default package bracket-matcher to enable auto-closing of $$.

It seems like the only two LaTeX extensions on Nova currently don't do any of that. So I have to revert back to using Atom for the time being, but it would be great for either LaTeX or TeX Suite to support such features (although TeX Suite seems to be crashing on Nova v9.3, and this extension is way simpler and suits my most needs).

[Edit] I just remember that I actually have to manually close \[\] on Atom as well, I'm not sure why, but the auto-closing of \[\] only works some of the time, and I'd rather for it to be off.

mava commented 2 years ago

Thank you, that’s a good idea. I had thought about it and run into some limitations/bugs of Nova’s API. But I’ll definitely look into it again. Thanks!