zsh-users
 help / color / mirror / code / Atom feed
From: John Cooper <john.cooper@eu.citrix.com>
To: zsh-users@sunsite.dk
Subject: Completing within colon separated paths
Date: 14 Mar 2001 15:45:35 +0000	[thread overview]
Message-ID: <m3ofv4icbk.fsf@kontiki.cam.eu.citrix.com> (raw)

[ 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


             reply	other threads:[~2001-03-14 15:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-14 15:45 John Cooper [this message]
2001-03-14 15:53 ` Peter Stephenson
2001-03-14 16:30   ` John Cooper
2001-03-14 16:56     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ofv4icbk.fsf@kontiki.cam.eu.citrix.com \
    --to=john.cooper@eu.citrix.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).