Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Setting magic-space in /etc/zshrc
- X-seq: zsh-workers 38544
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Setting magic-space in /etc/zshrc
- Date: Wed, 25 May 2016 13:22:27 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=h7ClLORXZ14hHEqLl8H96UJ0VhZ2+VHbZOkcyXL8eUc=; b=iGY5uQxjMRJPZFOyzW7tNq/BUgdlV2qokMvjdhJFqLGvh9q2QNEVnJxbWqAILWUsEZ bBvPx8j2f/XtAz4ylVdhJ/+QGh1jDWjthW0d5/sekGvtIJ+hfxUXP6Ep2/XuahByGELH zSWppjiQ+a3y/VOybCTDkleKj9mc4uvNR5xYNDT55eDlkBUbrq5AVO+8jUjgF/E6yRj4 YU6BI2F/za1eUOogs0VR6+TWFsmtSwBt+Aszv9wUJqVrmMeO+YwdShfrtHxxR6q3X8co 0T53UVQESy0D9xAPbs646+F8+PywdSD4wiKFUotUXU7ZE0qgyBJ205UOpgdZbC3tCyNz d4JA==
- In-reply-to: <CAH+w=7bGM2S7UB0fbGQbkVMDnZnh=o45ieKg__spMSS3fT3U5g@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDLFkWyFdDvTPokCNEben-2Zof8tLojyMyKgJ06aTCr3g@mail.gmail.com> <CAH+w=7Z1RTUK9Hft_cg3=-GTPo8+fxzKX_5CMcZQN1nGS3H-Cw@mail.gmail.com> <CAH+w=7Zkvxrgi5KB-1oMSHpfL+j8whbL4meV7Yn=x1wmDai2wQ@mail.gmail.com> <CAH+w=7bGM2S7UB0fbGQbkVMDnZnh=o45ieKg__spMSS3fT3U5g@mail.gmail.com>
On 25 May 2016 at 12:42, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On May 25, 2016 10:12 PM, "Sebastian Gniazdowski" <sgniazdowski@xxxxxxxxx>
> wrote:
>>
>> When shell startups, it shows: " " magic-space. When I issue "bindkey
>> ' '", it shows self-insert.
>
> I'm not able to reproduce this on OSX with 5.0.2 or a recent build of
> 5.2-dev-1 (the only OS/versions I have accessable at the moment). If
> happening, this may have something to do with the emacs / vicmd keymaps
> selected automatically by examining the VISUAL / EDITOR environment
> settings, such that you are seeing/binding one keymap in /etc/zshrc and
> another later.
You are apparently right. I have bindkey -v. Removing it on Fedora
causes bindkey ' ' to display magic-space also after complete startup.
In the widget, I was creating own keymap by copying it from emacs. So
it had the /etc/zshrc influence in it. However, I was also doing some
checks while debugging: added bindkey ' ' to overriding self-insert
widget – shown self-insert. Added magic-space override – and it wasn't
called on space.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author