zsh-workers
 help / color / mirror / Atom feed
* Doc for bracketed-paste
@ 2021-09-08  0:27 Bart Schaefer
  2021-09-08 12:49 ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2021-09-08  0:27 UTC (permalink / raw)
  To: Zsh hackers list

Shouldn't it say there are default bindings?

Maybe it should also recommend against changing the default, since the
sequence to end the paste is hardwired in C, but I haven't attempted
to address that.

diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 9694a1f74..6d517b81b 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -2222,7 +2222,7 @@ item(tt(beep))(
 Beep, unless the tt(BEEP) option is unset.
 )
 tindex(bracketed-paste)
-item(tt(bracketed-paste))(
+item(tt(bracketed-paste) (tt(^[[200~)) (tt(^[[200~)) (tt(^[[200~)))(
 This widget is invoked when text is pasted to the terminal emulator. It
 is not intended to be bound to actual keys but instead to the special
 sequence generated by the terminal emulator when text is pasted.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Doc for bracketed-paste
  2021-09-08  0:27 Doc for bracketed-paste Bart Schaefer
@ 2021-09-08 12:49 ` Oliver Kiddle
  2021-09-08 14:00   ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2021-09-08 12:49 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh hackers list

Bart Schaefer wrote:
> Shouldn't it say there are default bindings?

Leaving them out was intentional but I don't especially object if you
want to add them. I think my rationale for omitting them was that
nobody is going to want to learn them. It is an escape sequence not
a keystroke. At some point in the future certain terminals may pick
a different sequence or terminfo could evolve so that they would be
programmatically selected. So the form of the existing keybinding is not
a fixed thing that can be relied upon for the future.

In practice new terminals are more likely to try to be compatible and if
it changes it'll be to a different form such as dispensing with the end
tag but returning the size in bytes first.

Oliver


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Doc for bracketed-paste
  2021-09-08 12:49 ` Oliver Kiddle
@ 2021-09-08 14:00   ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2021-09-08 14:00 UTC (permalink / raw)
  To: Oliver Kiddle; +Cc: Zsh hackers list

On Wed, Sep 8, 2021 at 5:49 AM Oliver Kiddle <opk@zsh.org> wrote:
>
> Bart Schaefer wrote:
> > Shouldn't it say there are default bindings?
>
> Leaving them out was intentional but I don't especially object if you
> want to add them. I think my rationale for omitting them was that
> nobody is going to want to learn them.

I guessed it was something like that.  The only reason to add them is
to give some hint of what might be happening if ZLE and the terminal
somehow get into disagreement about whether bracketed paste mode is
enabled.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-08 14:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08  0:27 Doc for bracketed-paste Bart Schaefer
2021-09-08 12:49 ` Oliver Kiddle
2021-09-08 14:00   ` Bart Schaefer

zsh-workers

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ https://inbox.vuxu.org/zsh-workers \
		zsh-workers@zsh.org
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git