* Bug Report: ... not being expanded properly?
@ 2019-02-06 13:51 Aaron Lichtman
2019-02-06 16:25 ` Mikael Magnusson
0 siblings, 1 reply; 3+ messages in thread
From: Aaron Lichtman @ 2019-02-06 13:51 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]
Hi,
My apologies if this isn't the right place for this.
Here's some terminal output to show the issue I'm running into.
```zsh
~/Desktop/Development
➜ cd ... # Showing that the "..." alias works to like "cd ../.."
~
➜ cd Desktop/Development # Just resetting the working dir
~/Desktop/Development
➜ cd .../Desktop # Showing that the alias breaks when any other
modifications are made to the path :(
cd: no such file or directory: .../Desktop
~/Desktop/Development
➜ cd ../../Desktop # Showing that the path I tried to cd to is valid
~/Desktop
➜ # Path is valid
➜ zsh --version
zsh 5.7 (x86_64-apple-darwin18.2.0)
```
The same behavior can be observed with the .... and ..... aliases. I
recently upgraded to zsh 5.7.2 from 5.6.2, but I'm not sure if this is
related to that. It's very possible this is a configuration error.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug Report: ... not being expanded properly?
2019-02-06 13:51 Bug Report: ... not being expanded properly? Aaron Lichtman
@ 2019-02-06 16:25 ` Mikael Magnusson
2019-02-07 0:13 ` Aaron Lichtman
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2019-02-06 16:25 UTC (permalink / raw)
To: Aaron Lichtman; +Cc: zsh-workers
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug Report: ... not being expanded properly?
2019-02-06 16:25 ` Mikael Magnusson
@ 2019-02-07 0:13 ` Aaron Lichtman
0 siblings, 0 replies; 3+ messages in thread
From: Aaron Lichtman @ 2019-02-07 0:13 UTC (permalink / raw)
To: Mikael Magnusson; +Cc: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]
Perfect, that worked!
Thanks for the help!
Cheers,
Aaron
On Wed, Feb 6, 2019 at 10:25 AM Mikael Magnusson <mikachu@gmail.com> wrote:
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-07 0:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-06 13:51 Bug Report: ... not being expanded properly? Aaron Lichtman
2019-02-06 16:25 ` Mikael Magnusson
2019-02-07 0:13 ` Aaron Lichtman
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).