zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Zle hooks besides zle-line-init, zle-line-finish, paste-insert
Date: Thu, 4 Feb 2016 07:12:58 -0800	[thread overview]
Message-ID: <160204071258.ZM25916@torch.brasslantern.com> (raw)
In-Reply-To: <CAKc7PVDTjHGK2TaWaATrq2ihem4AkYRd8MW5GmG-jjTA=mmQwA@mail.gmail.com>

On Feb 4, 11:22am, Sebastian Gniazdowski wrote:
}
} Thanks I missed this because after finding first "zle-line-init", I
} then always followed to look for "hook" keyword :S And there is no
} paste-insert there at all, curious.

Generally speaking the hooks are for things that don't already involve
direct widget actions.  If there's already a widget for something, e.g.
bracketed-paste, you are expected to just redefine the widget.  It's
true that this isn't as flexible as, say, emacs "advice", because it
is difficult for multiple different applications to co-opt the same
widgets.

Detecting pastes at all in the shell is a tricky business.


      reply	other threads:[~2016-02-04 15:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-04  9:40 Sebastian Gniazdowski
2016-02-04  9:50 ` Peter Stephenson
2016-02-04 10:22   ` Sebastian Gniazdowski
2016-02-04 15:12     ` Bart Schaefer [this message]

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=160204071258.ZM25916@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).