1

Is there any way to separate CDPATH paths and local paths in zsh autocompletion? Ideally, to have something line this:

CDPATH="/foo/"

$ls /foo

foo1/ foo2/ foo3

$ls .
local1/ local2/ local-file

$cd <TAB>           << autocompletion...
local1/ local2/     << local dirs
                    << note blank line separating locals from CDPATH
foo1/ foo2/ foo3    << CDPATH

I tried playing with zstyle without much success:

zstyle ':completion:*:complete:(cd|pushd):*' \
    tag-order 'local-directories named-directories path-directories'

Related:

Community
  • 1
  • 1
Jakub M.
  • 32,471
  • 48
  • 110
  • 179

1 Answers1

0
zstyle ':completion:*:complete:(cd|pushd):*' group-name ''
zstyle ':completion:*:complete:(cd|pushd):*' format ' '
Jakub M.
  • 32,471
  • 48
  • 110
  • 179