zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Hahler <genml+zsh-workers@thequod.de>
To: zsh-users@zsh.org
Subject: Re: bracketed paste mode in xterm and urxvt
Date: Thu, 28 May 2015 22:30:45 +0200	[thread overview]
Message-ID: <55677AF5.50709@thequod.de> (raw)
In-Reply-To: <CAFOazAOfk=Sq-smkMGzJKO4b7jMb_1_m4vXXn8twoVA2wV55YA@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28.05.2015 13:42, Jérémie Roquet wrote:

> This is with no doubt one of the most useful additions I've
> done to my config in years.

I've stumbled upon it recently, too, and noticed that the handling of
zle-line-init and zle-line-finish should be improved to not overwrite
an already defined function.

I am using the following pattern to add additional code to these hooks:

  eval "zle-line-init()   { something_new; $functions[zle-line-init]; }"
  eval "zle-line-finish() { something_new; $functions[zle-line-finish]; }"

Does this make sense?
Would this be something that add-zsh-hook could provide?

Apart from that I think that this (bracketed paste mode) should be
included in Zsh's and get maintained this way.  Then it could also be
adjusted for vi-mode.

A variant of this is included in oh-my-zsh, too:
https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/safe-paste/safe-paste.plugin.zsh


Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iD8DBQFVZ3r1fAK/hT/mPgARAl6LAKCwfEev8BBAv34+07MN4IMu+A4V+gCfT1he
DrAUaMop7PJDOiBNSMSnrQo=
=IswQ
-----END PGP SIGNATURE-----


  parent reply	other threads:[~2015-05-28 20:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-22 19:16 Mikael Magnusson
2015-05-28 11:42 ` Jérémie Roquet
2015-05-28 19:16   ` Yuri D'Elia
2015-05-28 20:30   ` Daniel Hahler [this message]
2015-05-28 22:30     ` Bart Schaefer
2015-05-29 10:00     ` Yuri D'Elia
2015-06-03  8:35       ` Jesper Nygårds
2015-06-03  8:48         ` toki clover
2015-06-03 10:04         ` Yuri D'Elia
2015-06-03 10:14           ` Jesper Nygårds
2015-06-03 12:06           ` Mikael Magnusson
2015-06-03 14:01             ` Yuri D'Elia
2015-06-06  8:51               ` toki clover

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55677AF5.50709@thequod.de \
    --to=genml+zsh-workers@thequod.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).