Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Absolute path tab completion on Windows



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