You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing LaTeX with (setq yas-triggers-in-field t), which allows expanding snippet inside snippet, is very convenient. However, there are some one-letter key snippets in this repo that expand unexpectedly when I use <TAB> to move to the next field.
Example: \(g\)
I have a snippet <m which expands to \($1\)$0. When I want to write a function g in LaTeX, I type <m, g then <TAB>. However, since yas-triggers-in-field is activated, the <TAB> expands g to \gls{${1:label}}.
Since a function is very often named g (when f is already defined), this happens to be quite annoying.
As issue #69 stated, common words should not be used as a key.
I suggest to use gls as a key name or prepend the key by a common prefix.
The text was updated successfully, but these errors were encountered:
Writing LaTeX with
(setq yas-triggers-in-field t)
, which allows expanding snippet inside snippet, is very convenient. However, there are some one-letter key snippets in this repo that expand unexpectedly when I use<TAB>
to move to the next field.Example:
\(g\)
I have a snippet
<m
which expands to\($1\)$0
. When I want to write a functiong
in LaTeX, I type<m
,g
then<TAB>
. However, sinceyas-triggers-in-field
is activated, the<TAB>
expandsg
to\gls{${1:label}}
.Since a function is very often named
g
(whenf
is already defined), this happens to be quite annoying.As issue #69 stated, common words should not be used as a key.
I suggest to use
gls
as a key name or prepend the key by a common prefix.The text was updated successfully, but these errors were encountered: