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



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