io12 / org-fragtog

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
MIT License
404 stars 14 forks source link

Preview is not displayed as I type #32

Closed chrt closed 2 years ago

chrt commented 2 years ago

Suppose that I type $e^x$. No preview is generated as I finish the second $. If I then move the cursor inside the formula, and then move it outside the formula, the preview is generated correctly.

Is this the intended behavior? What to do if I want to see the preview as I finish typing, without moving my cursor in and out?

Thank you!

io12 commented 2 years ago

This isn't intended behavior and I'm kind of confused how nobody else noticed this before now. I guess most people type both $ first, then move the cursor inside and enter the formula, or maybe an org-mode update caused the bug somehow. Anyway, thanks! I will work on fixing this.

io12 commented 2 years ago

This should be fixed now. Thanks again!