From f780110a1b86593819187d6e1ec17afc9a915128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 2 Apr 2020 18:25:14 +0200 Subject: [PATCH] doc: added documentation for (vimtex-cmd-toggle-frac) --- doc/vimtex.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/vimtex.txt b/doc/vimtex.txt index 195dce915d..12bd7377ca 100644 --- a/doc/vimtex.txt +++ b/doc/vimtex.txt @@ -744,7 +744,7 @@ This feature is explained in more detail later, see |vimtex-imaps|. csc |(vimtex-cmd-change)| `n` cs$ |(vimtex-env-change-math)| `n` csd |(vimtex-delim-change-math)| `n` - tsf |(vimtex-cmd-toggle-frac)| `n` + tsf |(vimtex-cmd-toggle-frac)| `nx` tsc |(vimtex-cmd-toggle-star)| `n` tse |(vimtex-env-toggle-star)| `n` tsd |(vimtex-delim-toggle-modifier)| `nx` @@ -2791,6 +2791,15 @@ MAP DEFINITIONS *vimtex-mappings* Delete/Change surrounding (math) delimiter. See also |g:vimtex_echo_verbose_input|. +*(vimtex-cmd-toggle-frac)* + Toggle fractions between inline mode (`num/den`) and command mode + (`\frac{num}{den}`). + + In visual mode, the selected text is toggled if it matches either + a `\frac{}{}` command or a `numerator / denominator` string. In normal mode, + we try to detect the surrounding fraction command or inline fraction + expression. If successful, the detected fraction is toggled. + *(vimtex-cmd-toggle-star)* *(vimtex-env-toggle-star)* Toggle starred command/environment.