From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9645 invoked by alias); 21 Jan 2016 07:03:04 -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: 21171 Received: (qmail 574 invoked from network); 21 Jan 2016 07:03:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 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=mqRa9jOJvHTWADySUYdp4xNnN9Wr+cj9qCFUqnt6ans=; b=kDkGdiL9tI93L4FHImD/gnRMu0b8m5G7jKdeBvkcWgZ2jsl/4Qb9UBpPhC5JjV8MgO AzMygugh2TyIx4pa1LXO1Q2BRFTJF3Ya2mkCPTP1nD3l4KjCKz08pNvTyzok0OPQyoBo hLghBeeDzNp1ffSx5YaQW+nwUsmnpczXQc0U0rzKD5RfAwkHtqzhL2diLhzvuGMolxDI 0ap0XKK+C/WoZOC4rvb47Pe4RM5K1nPsjOOiI4++b7dQ6FaVrL4zNQMm6HVpefFtwdQC u3L7QK+/YRCfEH8CcAl1Dv1HTEB24tF449n0MAr6JOzzP4EEZR3/gOi8JMYEWjmEM6/Q CTCA== 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=mqRa9jOJvHTWADySUYdp4xNnN9Wr+cj9qCFUqnt6ans=; b=Ht25aOT+bV4NebnticLOSnDvhNyoiinScisPYgmC8F2rgGIAuqV8ZToraLQIMbgLi8 GSnW5Th2tf1hJXFVUuwgIZpacK+Tfs/876Y3wn1LY7v1mln73B1d2TEPylYwcgjK/jhM 0JpkAcmqTTpfX8lmgzelKosFKKCT5g4406puh42e81Grxf0/FS4O5boVEV1Iv3/84KWP GKUfyjO+gJ44z5WREAiyPHnSrnOWaS+RH2Pk40WQMTYuRiaZcAlMVotabeaF5eJlePIX zW8QoaJ8Rbw3IEJKq/53UZj0FeuoSX7PX3Nhm381VlxKRGr2fZId2kaROpNxDTe7pF+T 6PHQ== X-Gm-Message-State: ALoCoQlKGkrhbVos6a5eglA/Yn4m9JrRq7nntos3/ogcJZcUeQS7FoWgRgnUGTXXRSpMj+GHYKuyAciR9BOqafE7MQ8A9qMTrw== X-Received: by 10.98.42.213 with SMTP id q204mr58676813pfq.141.1453359781837; Wed, 20 Jan 2016 23:03:01 -0800 (PST) From: Bart Schaefer Message-Id: <160120230333.ZM23552@torch.brasslantern.com> Date: Wed, 20 Jan 2016 23:03:33 -0800 In-Reply-To: <160120213253.ZM22536@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Nice in-word incremental history word searcher" (Jan 20, 9:32pm) References: <160120213253.ZM22536@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Nice in-word incremental history word searcher MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 20, 9:32pm, I wrote: } } Instead of overriding self-insert et al. in the main keymap and then } restoring them, you can do the same thing as with the zhcw keymap: } Create (once) a copy of the main keymap, install your new bindings } for self-insert etc., in that copy, and then when you want to use the } new keymap, switch to it with "zle -K". Upon thinking about this a bit more ... this may be a better approach but it's not necessarily an easier approach. To do it this way you have to find and rebind every keystroke that is linked to the widget you intend to replace, rather than just aliasing the widget name. That's not terribly difficult in Sebastian's function but it could be ugly if there are a lot of such bindings to fiddle with.