zsh-users
 help / color / mirror / code / Atom feed
* Completing within colon separated paths
@ 2001-03-14 15:45 John Cooper
  2001-03-14 15:53 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: John Cooper @ 2001-03-14 15:45 UTC (permalink / raw)
  To: zsh-users

[ ZSH_VERSION is 4.0.1-pre-2 ]

Is there a way to have TAB complete '/usr/local' from the X (marking cursor
position) in the following:

  $ .:/home/jsc/bin:/usr/locX:/sbin:/usr/sbin:/usr/java/jdk1.3/bin

Using expand-or-complete-prefix mimics temporary insertion of a space at the
cursor position, but it seems the colon at the start of the path component
prevents the recognition for filename completion.  I've tried dabbling with
WORDCHARS, but suspect this is not the right approach...

Interestingly, when I use `vared PATH', expand-or-complete-prefix does actually
complete path components.  So what needs to be done to have the same behavior
when editing PATH "directly" on the cmd line (i.e., without `vared')?

[`vared' might not always be the way to go, e.g., when passing -classpath, plus
 several other args, to a JVM.]

Thanks,

    --- John


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

end of thread, other threads:[~2001-03-14 16:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-14 15:45 Completing within colon separated paths John Cooper
2001-03-14 15:53 ` Peter Stephenson
2001-03-14 16:30   ` John Cooper
2001-03-14 16:56     ` Peter Stephenson

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).