-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle further math environments #2310
Comments
I believe I have fixed the issue with |
I believe the current code should be easy to understand: vimtex/autoload/vimtex/env.vim Lines 299 to 311 in 7afb9de
Currently, the only toggle loop is between I'm thinking that it could be interesting to have the loop be three-way, i.e.:
|
I think that's a very good compromise. (Although the The three-way loop is also attractive (and I now agree it should be without |
Ok. How do you think the updated behaviour is? Does it resolve your issues?
Good point. I personally have never become used to the |
I think it's quite nice, yes! (And personally I agree on the syntax; it's just too painful to type. I just mentioned this for the sake of being pedantic :)) |
The changes look good on my side as well. Thanks for the work on both issues!! Just an off-topic comment: I don't think the syntax
makes it as convenient to use |
Yes, that's a good point, @vneiger. I believe my "problem" with |
On the topic of |
Sure. I've pushed an update that exposes it through |
Actually there is another bug here: going from Also sorry for the number of comments recently. I should probably fork this repo at some point and send PRs instead. |
Ah, yes - sorry, and good catch. I'll fix it.
No problem, I enjoy thoughtful and good comments. So far I find yours to be useful, although not always so easy to address. :) |
(But obviously, PR's are more than welcome!) |
(This is a follow-up to #1858.)
There are further pairs of math environments that would be useful to be able to toggle easily between them. (Some of them are already covered by
cs$
, but a toggle would be more convenient.)$$ ... $$
->\[ ... \]
(one-way, since since$$
should not be used in LaTeX!note that)ts$
currently errors in this situation\[ ... \]
<->\begin{equation*} ... \end{equation*}
(here the direction->
is already possible viacs$
, but<-
is not).It's not clear to me whether this would be better included as a three-way toggle, or a second toggle (
tsm
, for "toggle surrounding math"?).The text was updated successfully, but these errors were encountered: