zsh-users
 help / color / mirror / code / Atom feed
* Separate cdpath elements in path-directories completion
@ 2023-02-18 21:10 Sebastian Stark
  2023-02-18 23:03 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Stark @ 2023-02-18 21:10 UTC (permalink / raw)
  To: zsh-users


I have several directories in $cdpath.

In tab completion on cd I have configured "local directory" to show up 
first and then "directory in cdpath". That is almost perfect.

Is it possible to show a separate completion section for each element in 
$cdpath? Looking at the code of _cd I can see that this is happening 
(excerpt):

   tmpcdpath=(${${(@)cdpath:#.}:#$PWD})
   alt=( 'path-directories:directory in cdpath:_path_files -W tmpcdpath -/' )

So I guess it could be done by having my own copy of _cd that changes 
this part of the code.

But perhaps there is a less invasive method I haven't discovered?


Sebastian


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-19 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-18 21:10 Separate cdpath elements in path-directories completion Sebastian Stark
2023-02-18 23:03 ` Bart Schaefer
2023-02-19 10:02   ` Sebastian Stark

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).