]> git.lyx.org Git - lyx.git/commitdiff
Cycle through arrows with autocorrect
authorEnrico Forestieri <forenr@lyx.org>
Sun, 19 Mar 2023 09:26:08 +0000 (10:26 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 19 Mar 2023 09:26:08 +0000 (10:26 +0100)
The way autocorrect is implemented it is not possible to map
--> and ==> to \longleftarrow and \Longleftarrow, respectively.
One has to type ->- and =>= to that effect, which may be
counterintuitive.

This commit allows typing -> or => followed by * to cycle through
all possible arrows of the same type.

lib/autocorrect

index 98a46aa29390e5527dc7b2343a8829d933a7b174..a1d6f31267e803848b41557eb054965d4999eec7 100644 (file)
 \Leftarrow        =    \Longleftarrow
 \Longleftarrow    >    \Longleftrightarrow
 
+\leftarrow        *    \longleftarrow
+\longleftarrow    *    \longleftrightarrow
+\longleftrightarrow *  \leftarrow
+\rightarrow       *    \longrightarrow
+\longrightarrow   *    \longleftrightarrow
+
+\Leftarrow        *    \Longleftarrow
+\Longleftarrow    *    \Longleftrightarrow
+\Longleftrightarrow *  \Leftarrow
+\Rightarrow       *    \Longrightarrow
+\Longrightarrow   *    \Longleftrightarrow
 
 @                 *    \circ
 \circ             /    \varnothing