zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Setting magic-space in /etc/zshrc
Date: Wed, 25 May 2016 12:12:15 +0200	[thread overview]
Message-ID: <CAKc7PVDLFkWyFdDvTPokCNEben-2Zof8tLojyMyKgJ06aTCr3g@mail.gmail.com> (raw)

Hello,
let's have in /etc/zshrc:

bindkey ' ' magic-space
bindkey ' '

When shell startups, it shows: " " magic-space. When I issue "bindkey
' '", it shows self-insert. That's the point. However space apparently
is really bound to magic-space, despite it shows " " self-insert. I
had a widget that was overriding self-insert and it wasn't called on
space untill I've added bindkey ' ' self-insert to startup block.

Tested on Fedora 23 / zsh-5.1.1. It has space bound to magic-space by
default. I've tried doing so (via /etc/zshrc, like on Fedora) on OS X
and the problem reproduces. However, funny part is: not if I start the
shell again via zsh-5.2 -i (the same way iTerm2 starts it).

Best regards,
Sebastian Gniazdowski


             reply	other threads:[~2016-05-25 10:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25 10:12 Sebastian Gniazdowski [this message]
     [not found] ` <CAH+w=7Z1RTUK9Hft_cg3=-GTPo8+fxzKX_5CMcZQN1nGS3H-Cw@mail.gmail.com>
     [not found]   ` <CAH+w=7Zkvxrgi5KB-1oMSHpfL+j8whbL4meV7Yn=x1wmDai2wQ@mail.gmail.com>
2016-05-25 10:42     ` Bart Schaefer
2016-05-25 11:22       ` Sebastian Gniazdowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKc7PVDLFkWyFdDvTPokCNEben-2Zof8tLojyMyKgJ06aTCr3g@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).