From: Mikael Magnusson <mikachu@gmail.com>
To: Aaron Lichtman <aaronlichtman@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Bug Report: ... not being expanded properly?
Date: Wed, 6 Feb 2019 17:25:00 +0100 [thread overview]
Message-ID: <CAHYJk3RMie6+sP0QeTVuhdLkXHanYiKqyF3uAWKWKpiByVXbwg@mail.gmail.com> (raw)
In-Reply-To: <CAMKPFT9J-9dX2s4r9U-fbQGpXNKKM3eTiHSJMt2j15XyZZBTGg@mail.gmail.com>
On 2/6/19, Aaron Lichtman <aaronlichtman@gmail.com> wrote:
> Hi,
>
> Does anyone have any suggestions with regard to how to debug this? I looked
> through my .zshrc and .zprofile files and everything seems to be in order.
> I don't have a great understanding of zsh internals and am a bit lost.
>
> Any help would be appreciated.
>
> Best,
> Aaron Lichtman
Remove your aliases and use this instead,
# just type '...' to get '../..'
function _rationalise-dot() {
local MATCH MBEGIN MEND
if [[ $LBUFFER =~ '(^|/| | |'$'\n''|\||;|&)\.\.$' ]]; then
LBUFFER+=/
zle self-insert
fi
zle self-insert
}
zle -N _rationalise-dot
bindkey . _rationalise-dot
# without this, typing a . aborts incremental history search
bindkey -M isearch . self-insert
# dito for searching in menu selection
bindkey -M menuselect . self-insert
--
Mikael Magnusson
next prev parent reply other threads:[~2019-02-06 16:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-06 13:51 Aaron Lichtman
2019-02-06 16:25 ` Mikael Magnusson [this message]
2019-02-07 0:13 ` Aaron Lichtman
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=CAHYJk3RMie6+sP0QeTVuhdLkXHanYiKqyF3uAWKWKpiByVXbwg@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=aaronlichtman@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).