about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authormidchildan <git@midchildan.org>2024-02-29 22:34:33 +0900
committerOliver Kiddle <opk@zsh.org>2024-03-05 00:05:21 +0100
commit36a2d5cfa49a6b7d699269cb4f22d5f3d0255bc8 (patch)
tree4b0f5bec64fae4c859764deb42fe32191ce53dab /Doc/Zsh
parentd1ff06f99185bb14554c6a48e0466aee6466ecac (diff)
downloadzsh-36a2d5cfa49a6b7d699269cb4f22d5f3d0255bc8.tar.gz
zsh-36a2d5cfa49a6b7d699269cb4f22d5f3d0255bc8.tar.xz
zsh-36a2d5cfa49a6b7d699269cb4f22d5f3d0255bc8.zip
52641: incarg: add a backward variant and make it repeatable
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/contrib.yo8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index ea00f0ccc..e682c800a 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -2635,7 +2635,8 @@ When the widget is named tt(incarg), the widget will increment an integer
 placed under the cursor placed or just to the left of it. tt(decarg), on the
 other hand, decrements the integer. When the name is prefixed with tt(vi),
 the cursor will jump to the nearest integer after the cursor before incrementing
-it.
+it. The tt(vi) prefix can also be combined with a tt(backward-) prefix to make
+the widget search backwards for numbers.
 
 There's also a tt(sync-) prefix that can be added to the widget name. This
 variant is used for creating a sequence of numbers on split terminals with
@@ -2643,8 +2644,9 @@ synchronized key input. The first pane won't increment the integer at all, but
 each pane after that will have the integer incremented once more than the
 previous pane. It currently supports tmux and iTerm2.
 
-The prefixes tt(vi) and tt(sync-) can be combined, for example, into
-tt(vim-sync-). In this case, the tt(vi) prefix should come first.
+The prefixes tt(vi), tt(backward-), and tt(sync-) can be combined, for example,
+into tt(vim-sync-) or tt(vim-backward-sync-). The tt(vi) prefix needs to be
+at the very beginning.
 
 example(bindkey '^X+' incarg)
 )