Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Nice in-word incremental history word searcher
- X-seq: zsh-users 21171
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Nice in-word incremental history word searcher
- Date: Wed, 20 Jan 2016 23:03:33 -0800
- 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==
- In-reply-to: <160120213253.ZM22536@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVB+DcHPRB=1gbNTjXSN65SW2Sq86ZMLnHDoL7ANS=0PNA@mail.gmail.com> <160120213253.ZM22536@torch.brasslantern.com>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author