Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A wrong bindkey command breaks the way bck-i-search (Ctrl+R) works
- X-seq: zsh-users 26818
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Peter Slížik <peter.slizik@xxxxxxxxx>, zsh <zsh-users@xxxxxxx>
- Subject: Re: A wrong bindkey command breaks the way bck-i-search (Ctrl+R) works
- Date: Wed, 28 Jul 2021 00:35:27 +0200
- Archived-at: <https://zsh.org/users/26818>
- In-reply-to: <CAH+w=7Y9FG=sZn1+KgdA9=ec7rCZKGEmPQOxcr+bD5JUjAwqiA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAC-uhUDYyX34h7thLGjCSFYf4CBD-+2jp9As16mkSdqFeqCNfg@mail.gmail.com> <CAHYJk3QZ4n_fN1qThre7JcL9ixu6wmcvjwRSop+ZW4xQ5UGR9Q@mail.gmail.com> <CAH+w=7ak9R+ggJh3gsLqa5T47NZs8Ce0f=fSQV0yEhTCr7C2wg@mail.gmail.com> <CAC-uhUDRrvONS9+BdwNsTCFsng0N42SBBwK=nUK6QyVR_NRFKg@mail.gmail.com> <CAH+w=7Y9FG=sZn1+KgdA9=ec7rCZKGEmPQOxcr+bD5JUjAwqiA@mail.gmail.com>
On 7/27/21, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Tue, Jul 27, 2021 at 3:31 AM Peter Slížik <peter.slizik@xxxxxxxxx>
> wrote:
>>
>> bindkey -M emacs ' ' expand_abbreviations
>>
>> But alas, this changes the behavior of isearch, too. The documentation is
>> really sometimes too wordy and, in cases like this, too terse.
>
> I think that's because emacs == main and isearch is initialized from
> main ... so if you did that bindkey but only after isearch was
> initialized, it might work. I don't know how you assure that order of
> events, though.
I think isearch is used as a "local keymap", ie it falls back to main
at runtime if a key is not found in the isearch keymap. Unless you add
bindings to it, it is completely empty.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author