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

Re: Absolute path tab completion on Windows





On Sat, Nov 9, 2024 at 6:46 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:

However, I think even that is overkill -- there isn't anything that
matches the pattern /?/ yet is not a drive letter, is there?  So just

  if [[ $PREFIX != /*/*/* ]] && compset -P /?/

should set $IPREFIX to the drive path.

Works, thank you!  

 
On Fri, Nov 8, 2024 at 12:06 AM Ram Rachum <ram@xxxxxxxxxx> wrote:
>
> Oh, now I find that it only works when autocompleting the first folder and not any subsequent folders... So it'll complete /c/win to /c/Windows but it won't complete /c/Windows/sys to /c/Windows/System.

Hm, I'd like to see ^X? (completion debugging) output for that,
because it might be related to the attempt to match
case-insensitively.

Here's the output for /c/Win which works: https://gist.github.com/cool-RR/fdd1425e36552868b2424fb86ab132f4

Here's the output for /c/Windows/Sys which fails: https://gist.github.com/cool-RR/ad525df593f60ab11024fcb33fbed127


Messages sorted by: Reverse Date, Date, Thread, Author