From 98687fa1dec803f041cbb5417c146d8aa5129b53 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 19 Jun 2015 00:15:38 +0200 Subject: 35474, 35492: support the bracketed paste mode of newer terminal emulators --- Doc/Zsh/params.yo | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Doc/Zsh/params.yo') diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index eb3eb367e..e2091624b 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -1642,6 +1642,23 @@ item(tt(ZDOTDIR))( The directory to search for shell startup files (.zshrc, etc), if not tt($HOME). ) +vindex(zle_bracketed_paste) +cindex(bracketed paste) +cindex(enabling bracketed paste) +item(tt(zle_bracketed_paste))( +Many terminal emulators have a feature that allows applications to +identify when text is pasted into the terminal rather than being typed +normally. For ZLE, this means that special characters such as tabs +and newlines can be inserted instead of invoking editor commands. +Furthermore, pasted text forms a single undo event and if the region is +active, pasted text will replace the region. + +This two-element array contains the terminal escape sequences for +enabling and disabling the feature. These escape sequences are used to +enable bracketed paste when ZLE is active and disable it at other times. +Unsetting the parameter has the effect of ensuring that bracketed paste +remains disabled. +) vindex(ZLE_LINE_ABORTED) item(tt(ZLE_LINE_ABORTED))( This parameter is set by the line editor when an error occurs. It -- cgit v1.2.3 From f3130bf6e9d5fa3ecda845f1895b9b55a240064c Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 24 Jul 2015 17:06:22 -0700 Subject: 35896: index zle_highlight --- ChangeLog | 2 ++ Doc/Zsh/params.yo | 6 ++++++ Doc/Zsh/zle.yo | 2 ++ 3 files changed, 10 insertions(+) (limited to 'Doc/Zsh/params.yo') diff --git a/ChangeLog b/ChangeLog index d22a2c821..19c847046 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2015-07-24 Barton E. Schaefer + * 35896: Doc/Zsh/params.yo, Doc/Zsh/zle.yo: index zle_highlight + * 35882: Src/Zle/iwidgets.list: read-command has ZLE_NOTCOMMAND 2015-07-24 Daniel Shahaf diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index e2091624b..a4067883a 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -1659,6 +1659,12 @@ enable bracketed paste when ZLE is active and disable it at other times. Unsetting the parameter has the effect of ensuring that bracketed paste remains disabled. ) +vindex(zle_highlight) +item(tt(zle_highlight))( +An array describing contexts in which ZLE should highlight the input text. +See ifzman(em(Character Highlighting) in zmanref(zshzle))\ +ifnzman(noderef(Character Highlighting)). +) vindex(ZLE_LINE_ABORTED) item(tt(ZLE_LINE_ABORTED))( This parameter is set by the line editor when an error occurs. It diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index ef73f4d55..3cdb4fe00 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -29,6 +29,7 @@ line editor. See ifzman(em(Parameters Used By The Shell) in zmanref(zshparam))\ ifnzman(noderef(Parameters Used By The Shell)). +vindex(zle_highlight, use of) The parameter tt(zle_highlight) is also used by the line editor; see ifzman(em(Character Highlighting) below)\ ifnzman(noderef(Character Highlighting)). Highlighting @@ -2457,6 +2458,7 @@ enditem() texinode(Character Highlighting)()(Zle Widgets)(Zsh Line Editor) sect(Character Highlighting) +vindex(zle_highlight, setting) The line editor has the ability to highlight characters or regions of the line that have a particular significance. This is controlled by the array parameter tt(zle_highlight), if it has been set by the user. -- cgit v1.2.3