From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10537 invoked from network); 11 Jun 2004 06:20:31 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 11 Jun 2004 06:20:31 -0000 Received: (qmail 16030 invoked from network); 11 Jun 2004 06:19:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Jun 2004 06:19:53 -0000 Received: (qmail 11300 invoked by alias); 11 Jun 2004 06:19:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7516 Received: (qmail 11290 invoked from network); 11 Jun 2004 06:19:34 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 11 Jun 2004 06:19:31 -0000 Received: (qmail 15020 invoked from network); 11 Jun 2004 06:19:31 -0000 Received: from moonbase.zanshin.com (root@64.84.47.139) by a.mx.sunsite.dk with SMTP; 11 Jun 2004 06:19:29 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.12.11/8.12.11) with ESMTP id i5B6JRwm002867 for ; Thu, 10 Jun 2004 23:19:27 -0700 Date: Thu, 10 Jun 2004 23:19:24 -0700 (PDT) From: Bart Schaefer Sender: schaefer@toltec.zanshin.com Reply-To: Zsh Users To: Zsh Users Subject: Re: Interactive program in Zsh In-Reply-To: <20040610172136.GC674@DervishD> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Thu, 10 Jun 2004, DervishD wrote: > * Bart Schaefer dixit: > > Or you could stuff the list of options into the history with "print -s" > > and then use "vared -h" > > Nice, but very complex if I need to modify the whole keymap. No, you just create a new empty keymap, insert only the bindings you want to allow, and swap it in. I _think_ it's possible to replace the map used by vared that way ... > For me would be easy to do the 'print -s', but instead of the list I > will print into the history the command to run the chosen option > followed by each option. You've lost me, I fear. Why would you need to do that? Vared is going to assign the selected value to a variable, not run it as a command.