From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18247 invoked by alias); 30 Oct 2013 16:26:09 -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: 18076 Received: (qmail 4771 invoked from network); 30 Oct 2013 16:26:03 -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: <131030092555.ZM8077@torch.brasslantern.com> Date: Wed, 30 Oct 2013 09:25:55 -0700 In-reply-to: Comments: In reply to Thiago Padilha "Fish-like autosuggestions" (Oct 29, 3:52pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Thiago Padilha , zsh-users@zsh.org Subject: Re: Fish-like autosuggestions MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 29, 3:52pm, Thiago Padilha wrote: } } I'm sure there are many improvements to be made as I am not a zsh expert. I have some concerns about the client/daemon model (for example what prevents a malicious program from connecting to the daemon and sending input that would cause the zpty shell to execute a command?) but I haven't studied it very closely. Since you're already doing "zle recursive-edit", you might want to look into creating your own keymap instead of changing widget bindings in the main keymap. There are some examples and helper code for this in Functions/Zle/keymap+widget in the distribution.