Roam-Research / issues

Roam Research - A note-taking tool for networked thought.
https://roamresearch.com/
304 stars 7 forks source link

Exit a latex block by overwriting the $ signs or pressing Tab, just like with links #600

Open NishantTharani opened 3 years ago

NishantTharani commented 3 years ago

Exiting from a latex block is not frictionless

Assume I'm writing the following line:

If $$T$$ is the time required to insert/remove an element, then this is $$O(V + ET)$$

As soon as I type $$, a matching closing pair appears afterwards. However, after I type T there is no easy way to get to the other side of this closing pair so I can keep writing - I have to find the arrow key or use the mouse.

Feature implementation

After typing T in the line above, I would intuitively expect typing $$ to overwrite the closing pair, not insert further latex tags. This matches with the behaviour of backlinking in Roam - if I write [[graphs]], typing the ]] at the end overwrites the closing pair that appears.

I would also expect to be able to press Tab to skip to after the closing latex tags, again just as I can with backlinks.

NishantTharani commented 3 years ago

I notice the same happens with inline code blocks (using single backticks) so perhaps I could request the same feature implementation for them as well