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
Vim handles certain characters, such as (, ), [, ], ", and more as pairs.
This means that you can, for example, use % to jump between corresponding opening and closing delimiters or use i and a to affect code surrounded by delimiters, as in ci", which changes everything within the selected quotes or da(, which deleted everything within the selected parenthesis, including the parenthesis themselves.
The Typst web app vim mode replicates this behaviour.
In Typst some characters can be used as delimiters, but are not recognized by the web app vim mode as delimiters, such as * (bold) and _ (italics) and $ (math mode).
In normal vim it would be possible to add those characters as delimiters using the .vimrc configuration file.
I believe the Typst web app should threat them as delimiters by default, allowing users to use, for example, ci* to change the text between two * characters.
Use Case
Supporting this would make editing in vim mode more efficient and intuitive. Those characters are semantically paired delimiters but are not treated as such by the current vim mode.
The text was updated successfully, but these errors were encountered:
Description
Vim handles certain characters, such as
(
,)
,[
,]
,"
, and more as pairs.This means that you can, for example, use
%
to jump between corresponding opening and closing delimiters or usei
anda
to affect code surrounded by delimiters, as inci"
, which changes everything within the selected quotes orda(
, which deleted everything within the selected parenthesis, including the parenthesis themselves.The Typst web app vim mode replicates this behaviour.
In Typst some characters can be used as delimiters, but are not recognized by the web app vim mode as delimiters, such as
*
(bold) and_
(italics) and$
(math mode).In normal vim it would be possible to add those characters as delimiters using the
.vimrc
configuration file.I believe the Typst web app should threat them as delimiters by default, allowing users to use, for example,
ci*
to change the text between two*
characters.Use Case
Supporting this would make editing in vim mode more efficient and intuitive. Those characters are semantically paired delimiters but are not treated as such by the current vim mode.
The text was updated successfully, but these errors were encountered: