summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2002-03-21 23:03:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2002-03-21 23:03:09 +0000
commit9763da46c81b921cd82c3d145c1777ca5320050e (patch)
tree38e3906ca3151c9374c61e88f2b5f8f49208a9f7 /Doc/Zsh
parent25b84ec914984bfd9c860e91d3be28b5b0315e6e (diff)
downloadzsh-9763da46c81b921cd82c3d145c1777ca5320050e.tar.gz
zsh-9763da46c81b921cd82c3d145c1777ca5320050e.tar.xz
zsh-9763da46c81b921cd82c3d145c1777ca5320050e.zip
16879: Functions/Zle/up-line-or-beginning-search,
Functions/Zle/down-line-or-beginning-search,
Doc/Zsh/contrib.yo: originally by Bart --- widgets which
combine up-line-or-search and history-beginning-search-backward
behaviour.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/contrib.yo11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 21997b7d8..f21a31284 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -430,6 +430,17 @@ zle -N history-beginning-search-forward-end \
 bindkey '\e^P' history-beginning-search-backward-end
 bindkey '\e^N' history-beginning-search-forward-end)
 )
+tindex(up-line-or-beginning-search)
+tindex(down-line-or-beginning-search)
+item(tt(up-line-or-beginning-search), tt(down-line-or-beginning-search))(
+These widgets are similar to the builtin functions tt(up-line-or-search)
+and tt(down-line-or-search):  if in a multiline buffer they move up or
+down within the buffer, otherwise they search for a history line matching
+the start of the current line.  In this case, however, they search for
+a line which matches the current line up to the current cursor position, in
+the manner of tt(history-begining-search-backward) and tt(-forward), rather
+than the first word on the line.
+)
 tindex(incarg)
 vindex(incarg, use of)
 item(tt(incarg))(