-
Notifications
You must be signed in to change notification settings - Fork 409
Open
Labels
Description
Description
Currently any strings that starts with a \ are parsed as a cmd, which is not ideal for vimtex-cmd-toggle-star-agn. For example inside an equation when we try toggling to equation*, sometimes the \pi under the cursor gets toggled to \pi* instead, which doesn't exist at all. This also applies to the ubiquitous \frac, \sin, \left etc.
Personally the few actual commands with starred versions that I encounter are
\section,\subsection, etc\cite,\citeauthor, etc\ref,\autoref, etc
There are much fewer of those than the literals above, so maybe a whitelist works? But I am not sure about other users.
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
No
VimtexInfo
Not needed.