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: