Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Re: zed-set-filename breaks zed keymap?



On Sun, Apr 25, 2021 at 12:35 PM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> So ... what's the correct fix here?  Shortest is to change
> zed-set-file-name to use
>   bindkey -A zed-normal-keymap main
> Attached patch does that.
>
> +    local curcontext=zed-set-filename:::

(Typo, should be "file-name", will fix if/when committing)

Incidentally, invoking _complete_help from either zed or
zed-set-file-name gives output like this:
-----
% zed foo

File name:
_help_sort_tags:comptry:8: no tags registered

File name:
tags in context :completion:zed-set-file-name:complete:-value-,var,::
    use-compctl  (_default _value _value _in_vared)
-----

Is an error message from comptry really appropriate?  Easily enough
discarded in _complete_help, but under what circumstances would one
ever want that error?




Messages sorted by: Reverse Date, Date, Thread, Author