From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: Various notes on KSH_GLOB
Date: Thu, 30 May 2013 16:53:15 +0100 [thread overview]
Message-ID: <20130530165315.243767a7@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <87obbsczfu.fsf@gmail.com>
On Thu, 30 May 2013 16:30:45 +0200
Christian Neukirchen <chneukirchen@gmail.com> wrote:
> (Perhaps I just need a widget to type \^ when I type ^ after whitespace...)
This is quite straightforward, by the way...
quote-at-start() {
if [[ $NUMERIC = '' ]]; then
[[ $LBUFFER[-1] = ' ' || $LBUFFER = '' ]] && LBUFFER+='\'
fi
zle self-insert
}
zle -N quote-at-start
bindkey \^ quote-at-start
That gets confused by
echo 'stuff ^like ^this'
though some magic with split-shell-arguments ought to fix that. You can
suppress the behaviour with ESC-1 beforehand, though come to think of it
using ^V beforehand is simpler and more obvious.
pws
prev parent reply other threads:[~2013-05-30 16:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 14:30 Christian Neukirchen
2013-05-30 15:10 ` Peter Stephenson
2013-05-30 15:53 ` Peter Stephenson [this message]
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=20130530165315.243767a7@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.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).