joeyuping / quick_latex_obsidian

MIT License
326 stars 21 forks source link

Default List and New Shorthands not working #46

Closed mayurankv closed 2 years ago

mayurankv commented 2 years ago

Hi, thanks so much for the updates and the added functionality! I just wanted to note that in your default list, nu:\nu; reads as a newline character and results in two lines 'nu:' and 'u;'.

Also unfortunately, the new shorthands aren't working at all for me. Even with the basic list uninstalled and reinstalled, even expanding things like al:\alpha or sq:\sqrt{} doesn't work. Not quite sure why! Trying to expand $al$ by adding a space after al just results in $al $ unlike $\alpha$ as expected. Sorry about this, please do let me know if this could be an issue on my end!

mayurankv commented 2 years ago

Also just as an added note, I'm not 100% sure but I think there's some grammar errors in the new shorthands text, I've tried to correct it below but some of it may be my misunderstanding.

Separate the multi-letters shorthand and the snippet with ":" and end each shorthand snippet pair by ";" and a newline. For expressions that end with "{}", the cursor will automatically be placed within the bracket. Alternatively, you can type "#cursor" within the snippet to set the cursor location after replacement. You can also include "#tab" within the snippet for use cases such as multiple {}s (e.g. binom{#cursor}{#tab}$). Pressing the tab key in such cases will jump the cursor to the next "#tab" keyword. Shorthands now support multiline snippets too! (Try uninstall then reinstalling the plugin to see the new set of shorthands.)

I believe the following is slightly easier to parse and adds in some missing full stops but obviously a rather minor issue.

joeyuping commented 2 years ago

@mayurankv thanks again! and thanks so much for correcting my English~

Please see v2.3.3