From: Mikael Magnusson <mikachu@gmail.com>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: "Zsh Hackers' List" <zsh-workers@zsh.org>
Subject: Re: PATCH: (maybe) negative ranges
Date: Wed, 30 Sep 2015 19:26:31 +0200 [thread overview]
Message-ID: <CAHYJk3SMQtz7PQLHM3nsLmqaVDE0BK6ias3UC=7cgMWH21MpUA@mail.gmail.com> (raw)
In-Reply-To: <20150930175124.00560d22@pwslap01u.europe.root.pri>
On Wed, Sep 30, 2015 at 6:51 PM, Peter Stephenson
<p.stephenson@samsung.com> wrote:
> I'd like to be able to ignore ^ at the start of a git range
> specification to support things like
>
> git log r1 ^r2
Can't say anything helpful about the completion, but you may find this helpful,
function _self_insert_git() {
if [[ $BUFFER = (git(-| )|gitk |qgit )* ]]; then
if [[ ! $LBUFFER[-1] = '\' && $LBUFFER != *\ --\ * ]]; then
LBUFFER+='\'
fi
fi
zle self-insert
}
zle -N self-insert-git _self_insert_git
bindkey '^' self-insert-git
bindkey -M isearch '^' self-insert
--
Mikael Magnusson
prev parent reply other threads:[~2015-09-30 17:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 16:51 Peter Stephenson
2015-09-30 17:26 ` Mikael Magnusson [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='CAHYJk3SMQtz7PQLHM3nsLmqaVDE0BK6ias3UC=7cgMWH21MpUA@mail.gmail.com' \
--to=mikachu@gmail.com \
--cc=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).