From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22379 invoked by alias); 5 Nov 2013 19:47:03 -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: 18098 Received: (qmail 21569 invoked from network); 5 Nov 2013 19:46:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131105114640.ZM18224@torch.brasslantern.com> Date: Tue, 05 Nov 2013 11:46:40 -0800 In-reply-to: <20131105161858.543037da@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: Fish-like autosuggestions" (Nov 5, 4:18pm) References: <131030092555.ZM8077@torch.brasslantern.com> <131105075700.ZM18043@torch.brasslantern.com> <20131105161858.543037da@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh-Users List Subject: Re: Fish-like autosuggestions MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 5, 4:18pm, Peter Stephenson wrote: } } It would seem natural to replace the callhookfunc() in raw_getbyte() } with a zlecallhook(). However, that's incompatible so it probably needs } augmenting with an additional option to zle -F to indicate the argument } is a ZLE widget rather than a shell function How about we treat it like zle-line-init, zle-keymap-select, etc.? Have a single predefined widget name that is called at that point (whether before, after, or instead of the "zle -F" handlers, I don't really have an opinion yet). Pass the file descriptor number in $NUMERIC, and maybe even set $PENDING to say how many bytes are ready on that FD. Hmm, the doc doesn't actually explain what the return value from a -F handler means to the surrounding code. There should probably be some sort of return-code-based protocol to indicate whether handling should proceed, which makes me lean away from the "instead" option but still doesn't resolve before/after for me.