Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zle hooks besides zle-line-init, zle-line-finish, paste-insert
- X-seq: zsh-users 21232
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Zle hooks besides zle-line-init, zle-line-finish, paste-insert
- Date: Thu, 4 Feb 2016 07:12:58 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=RvuUzwGBDHxZbxdPWPJ30jW9Vx7F4EGEGLgGXeo0VQc=; b=xPxqJePbmbx+R2+Ii+Ei44IA9XfymfNjPkPooxZOS6xZCVJTEU9yXJVgXfT9qww5tZ at7prR8WRyIts1yF1H1QgjKch77OubQH+kqjIwulJob6I93UlExViMH91rajHzcdZiAq EpBbVTAqh0oryKEsdMv1kmvlVNPaWl5VOjKHZd3RbK9kRU2cgTsv/0Py60MwrDAIuJ+F wLGNUItUt3k8PATnUuNtuoLReFf6O3wYrpeztSixFjPycdH6rNN5xGWkPPPfkUP9wVvd qr1mMt0Y2WP6IMq2MciYguV7KcESXe+jhiJxEUW0XYtEK4sl0N020HGulU4zDxlykW78 VNqQ==
- In-reply-to: <CAKc7PVDTjHGK2TaWaATrq2ihem4AkYRd8MW5GmG-jjTA=mmQwA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBLssuTvwz4y528p2RXFbMtyH9NWsEbxLtCutQ2Fm5fvA@mail.gmail.com> <20160204095036.378f6571@pwslap01u.europe.root.pri> <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author