From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10536 invoked by alias); 4 Feb 2016 15:13:06 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21232 Received: (qmail 9414 invoked from network); 4 Feb 2016 15:13:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=RvuUzwGBDHxZbxdPWPJ30jW9Vx7F4EGEGLgGXeo0VQc=; b=gApvarz4wIxJJrkC3TmuaOghok4WvP2OaNlJJCdH67n5wEiZRNUdNp0221DDToNUY3 LdSxJ4gW+AbKdlK7UO3CPc0WftPal5P4EdfbFaYpF+kn3hN26KiYi96KXzrOdC55xaUW tcR+iQhAnHiX2b4tyoWETxtNqVGsDn/0oERDPVw2eS5bA82RYu9ElUd7QUSB4HEAi/ni CQA8qL1E9OtEpIjhu9+r2B988f17GQUAftBTFiLt2a7cGmxRymKtcf0cjn0ud0j+F6hL xZtwjz6Pt55xkY3KKyjmbKO1yc9/eiLl2uMHxwB7mdJDNz0egt/SjPfCcnWEw7W/ysPV 6pjQ== X-Gm-Message-State: AG10YORLOwi8oWx5Iv3nwVbyQisQQuPXKuzLlLkOc6QjRKdZ3B5/5giI0ZU0/fK8LLFu7A== X-Received: by 10.98.0.86 with SMTP id 83mr11757597pfa.84.1454598780741; Thu, 04 Feb 2016 07:13:00 -0800 (PST) From: Bart Schaefer Message-Id: <160204071258.ZM25916@torch.brasslantern.com> Date: Thu, 4 Feb 2016 07:12:58 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Zle hooks besides zle-line-init, zle-line-finish, paste-insert" (Feb 4, 11:22am) References: <20160204095036.378f6571@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Zle hooks besides zle-line-init, zle-line-finish, paste-insert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.