Open animerqi opened 10 months ago
I can't reproduce this.
I had this problem too, Greek letters couldn't be triggered, but other things like "/" to "\frac{}{}" behaved fine. I found that the problem disappeared when I reset to default snippets. Maybe some of the custom command caused the problem?
Here are the Greek letters part in my customized snippets, with only minor modifications compared to the default.
// Greek letters
{trigger: "@a", replacement: "\\alpha", options: "mA"},
{trigger: "@A", replacement: "\\alpha", options: "mA"},
{trigger: "@b", replacement: "\\beta", options: "mA"},
{trigger: "@B", replacement: "\\beta", options: "mA"},
{trigger: "@c", replacement: "\\chi", options: "mA"},
{trigger: "@C", replacement: "\\chi", options: "mA"},
{trigger: "@g", replacement: "\\gamma", options: "mA"},
{trigger: "@G", replacement: "\\Gamma", options: "mA"},
{trigger: "@d", replacement: "\\delta", options: "mA"},
{trigger: "@D", replacement: "\\Delta", options: "mA"},
{trigger: ":e", replacement: "\\epsilon", options: "mA"},
{trigger: ":E", replacement: "\\Epsilon", options: "mA"},
{trigger: "@e", replacement: "\\varepsilon", options: "mA"},
{trigger: "@E", replacement: "\\Varepsilon", options: "mA"},
{trigger: "@z", replacement: "\\zeta", options: "mA"},
{trigger: "@Z", replacement: "\\zeta", options: "mA"},
{trigger: "@t", replacement: "\\theta", options: "mA"},
{trigger: "@T", replacement: "\\Theta", options: "mA"},
{trigger: "@k", replacement: "\\kappa", options: "mA"},
{trigger: "@K", replacement: "\\kappa", options: "mA"},
{trigger: "@l", replacement: "\\lambda", options: "mA"},
{trigger: "@L", replacement: "\\Lambda", options: "mA"},
{trigger: "@m", replacement: "\\mu", options: "mA"},
{trigger: "@M", replacement: "\\mu", options: "mA"},
{trigger: "@r", replacement: "\\rho", options: "mA"},
{trigger: "@R", replacement: "\\rho", options: "mA"},
{trigger: "@s", replacement: "\\sigma", options: "mA"},
{trigger: "@S", replacement: "\\Sigma", options: "mA"},
{trigger: "@o", replacement: "\\omega", options: "mA"},
{trigger: "@O", replacement: "\\Omega", options: "mA"},
{trigger: "@p", replacement: "\\varphi", options: "mA"},
{trigger: ":p", replacement: "\\phi", options: "mA"},
{trigger: "@P", replacement: "\\Phi", options: "mA"},
{trigger: "([^\\\\])(${GREEK}|${SYMBOL})", replacement: "[[0]]\\[[1]]", options: "rmA", description: "Add backslash before greek letters and symbols"},
(Latex Suit v1.8.4, Obsidian v1.4.14, Windows 11)
I had this problem too, Greek letters couldn't be triggered, but other things like "/" to "\frac{}{}" behaved fine. I found that the problem disappeared when I reset to default snippets. Maybe some of the custom command caused the problem?
Here are the Greek letters part in my customized snippets, with only minor modifications compared to the default.
// Greek letters {trigger: "@a", replacement: "\\alpha", options: "mA"}, {trigger: "@A", replacement: "\\alpha", options: "mA"}, {trigger: "@b", replacement: "\\beta", options: "mA"}, {trigger: "@B", replacement: "\\beta", options: "mA"}, {trigger: "@c", replacement: "\\chi", options: "mA"}, {trigger: "@C", replacement: "\\chi", options: "mA"}, {trigger: "@g", replacement: "\\gamma", options: "mA"}, {trigger: "@G", replacement: "\\Gamma", options: "mA"}, {trigger: "@d", replacement: "\\delta", options: "mA"}, {trigger: "@D", replacement: "\\Delta", options: "mA"}, {trigger: ":e", replacement: "\\epsilon", options: "mA"}, {trigger: ":E", replacement: "\\Epsilon", options: "mA"}, {trigger: "@e", replacement: "\\varepsilon", options: "mA"}, {trigger: "@E", replacement: "\\Varepsilon", options: "mA"}, {trigger: "@z", replacement: "\\zeta", options: "mA"}, {trigger: "@Z", replacement: "\\zeta", options: "mA"}, {trigger: "@t", replacement: "\\theta", options: "mA"}, {trigger: "@T", replacement: "\\Theta", options: "mA"}, {trigger: "@k", replacement: "\\kappa", options: "mA"}, {trigger: "@K", replacement: "\\kappa", options: "mA"}, {trigger: "@l", replacement: "\\lambda", options: "mA"}, {trigger: "@L", replacement: "\\Lambda", options: "mA"}, {trigger: "@m", replacement: "\\mu", options: "mA"}, {trigger: "@M", replacement: "\\mu", options: "mA"}, {trigger: "@r", replacement: "\\rho", options: "mA"}, {trigger: "@R", replacement: "\\rho", options: "mA"}, {trigger: "@s", replacement: "\\sigma", options: "mA"}, {trigger: "@S", replacement: "\\Sigma", options: "mA"}, {trigger: "@o", replacement: "\\omega", options: "mA"}, {trigger: "@O", replacement: "\\Omega", options: "mA"}, {trigger: "@p", replacement: "\\varphi", options: "mA"}, {trigger: ":p", replacement: "\\phi", options: "mA"}, {trigger: "@P", replacement: "\\Phi", options: "mA"}, {trigger: "([^\\\\])(${GREEK}|${SYMBOL})", replacement: "[[0]]\\[[1]]", options: "rmA", description: "Add backslash before greek letters and symbols"},
(Latex Suit v1.8.4, Obsidian v1.4.14, Windows 11)
Thanks for providing this info. I'm still unable to reproduce this, however. Are there any errors in the console?
Same problem, and I can reproduce this in the sandbox vault. I believe this may caused by the option "Snippets file or folder location".
Description
To Reproduce
For example, entering @a in $ will not be replaced with \alpha.
To use the Tab key for replacement, you need to change "tA" to "t" in the settings.
Expected Behavior
entering @a in $ will be replaced with \alpha.
Additional Info
Windows11