Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Absolute path tab completion on Windows
- X-seq: zsh-workers 53217
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Ram Rachum <ram@xxxxxxxxxx>
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Absolute path tab completion on Windows
- Date: Tue, 5 Nov 2024 21:21:39 +0100
- Archived-at: <https://zsh.org/workers/53217>
- In-reply-to: <CANXboVZoDGi8BCHn0CPitYAR_R4yH2Vc3BiQ0c18A0Wy=9NHKg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CANXboVbJ0mv5sD_PAVe=ESkjymJs1YuAEKF8T=4QMCNpD8460g@mail.gmail.com> <CAH+w=7a13BXHRj6XD0RNnPVfpET9mcJxYCO8Gp4ser8PZwSj=Q@mail.gmail.com> <CANXboVZoDGi8BCHn0CPitYAR_R4yH2Vc3BiQ0c18A0Wy=9NHKg@mail.gmail.com>
please don't top post
On Tue, Nov 5, 2024 at 2:17 PM Ram Rachum <ram@xxxxxxxxxx> wrote:
> On Tue, Nov 5, 2024 at 5:15 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>>
>> On Mon, Nov 4, 2024 at 1:06 PM Ram Rachum <ram@xxxxxxxxxx> wrote:
>> >
>> > For example, if I type /c/Wind and press tab it does not complete to /c/Windows.
>>
>> That's because /c is not a real directory, it's a representation of
>> the C: drive mount point. I'm not sure how the msys2 build of zsh was
>> done, but if it's based on cygwin, the directory search library is not
>> providing a way to enumerate files at the top level of a drive mount.
>
> I see. Then what would need to be changed in order to enable this functionality? And in which project would it need to be changed?
Something you can try is make a directory anywhere, i use ~/.cdpath,
and symlink everything in /c/* that you want to access easily, and set
cdpath=( ~/.cdpath ) in your startup files, then you should be able to
just cd Wind<tab> from anywhere. (If you can make symlinks in your
environment, a quick search suggests maybe).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author