From: Bart Schaefer <schaefer@brasslantern.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: zsh-workers@zsh.org, "Thomas Gläßle" <thomas@coldfix.de>
Subject: Re: Path with spaces in _canonical_paths
Date: Thu, 24 Nov 2022 10:42:12 -0800 [thread overview]
Message-ID: <CAH+w=7YMr+_Uq2W+wbmBaqdhOiS-VwKwRGSLXz2Vxq5L0bJRsg@mail.gmail.com> (raw)
In-Reply-To: <20221124001256.GR27622@tarpaulin.shahaf.local2>
On Wed, Nov 23, 2022 at 4:13 PM Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> .
> _f() { _canonical_paths tag desc $PWD/README }
> compdef _f f
> f <TAB>
> .
> is enough for me to get the else path to be taken.
For that one I do get
% f <TAB>
/Users/schaefer/Public/zsh/README README
> .
> touch /tmp/My\ File
> ln -s /tmp slashtmp
> compdef '_canonical_paths -N files files /tmp/My\ File' cmd
> cmd <TAB>
> .
But here I just get
% cmd <TAB>
% cmd /tmp/My\ File
I haven't actually tried the docker image. Does the above have
something to do with being on a Mac, where /tmp itself is already a
symlink to /private/tmp?
next prev parent reply other threads:[~2022-11-24 18:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-18 17:41 thomas
2022-11-21 3:57 ` Bart Schaefer
2022-11-21 10:47 ` thomas
2022-11-21 16:30 ` Bart Schaefer
2022-11-21 17:41 ` Thomas Gläßle
2022-11-21 21:32 ` Bart Schaefer
2022-11-23 14:13 ` Daniel Shahaf
2022-11-23 21:36 ` Bart Schaefer
2022-11-23 22:24 ` Daniel Shahaf
2022-11-23 22:42 ` Bart Schaefer
2022-11-23 23:06 ` Daniel Shahaf
2022-11-23 23:12 ` Bart Schaefer
2022-11-24 0:12 ` Daniel Shahaf
2022-11-24 18:42 ` Bart Schaefer [this message]
2022-11-23 23:36 ` Thomas Gläßle
2022-11-23 23:40 ` Thomas Gläßle
2022-11-24 18:51 ` Bart Schaefer
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='CAH+w=7YMr+_Uq2W+wbmBaqdhOiS-VwKwRGSLXz2Vxq5L0bJRsg@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=d.s@daniel.shahaf.name \
--cc=thomas@coldfix.de \
--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).