zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-users@sunsite.dk
Subject: Re: complete paths after non-space
Date: Fri, 05 Aug 2005 18:50:15 +0100	[thread overview]
Message-ID: <4662.1123264215@csr.com> (raw)
In-Reply-To: <7c737f3005080510222d6ecc4d@mail.gmail.com>

Deliverable Mail wrote:
> Got 4.2.5, setopt magicequalsubst, pathname completion works after =3D,
> but not after : in a PATH.  Is there another option governing colons?

I don't think so.  It works for me anywhere the shell finds
  [anything]=[anything]:[stuff]

Run C-x ?, go up a line and look at the debug output
file.  It should contain a (rather arbitrarily extracted) bit like:

+_dispatch:62> [[ '' != '(all|*patterns*)' ]]
+_dispatch:63> str=-value-,PATH,-default-
+_dispatch:64> [[ -n -value-,PATH,-default- ]]
+_dispatch:65> service=-value-,PATH,-default- 
+_dispatch:66> i=_dir_list
+_dispatch:67> _compskip=default 
+_dispatch:68> eval _dir_list
+(eval):1> _dir_list
+_dir_list:10> local 'sep=:' dosuf suf
+_dir_list:12> [[ '' == '-(s*|S)' ]]
+_dir_list:20> compset -P '*:'
+_dir_list:21> compset -S ':*'
+_dir_list:21> suf=: 
+_dir_list:23> [[ -n '' ]]
+_dir_list:26> suf=( ) 
+_dir_list:29> _directories -r ': /\t\t\-'

The compset's are the key to stripping off the parts of the colon path
that aren't wanted.

If it's never getting into _dir_list, see what's happening when
it enters _value (that handles completion for values of parameters
or anything that looks like one).  It should be getting there if
magic_equal_subst is having its effect.


pws


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


      reply	other threads:[~2005-08-05 17:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 23:11 Deliverable Mail
2005-08-03 17:57 ` Deliverable Mail
2005-08-03 18:15   ` Philippe Troin
2005-08-03 18:54 ` Peter Stephenson
2005-08-03 23:24   ` Deliverable Mail
2005-08-04  0:27     ` Wayne Davison
2005-08-05  2:43       ` Deliverable Mail
2005-08-05  8:30         ` Mikael Magnusson
     [not found]   ` <7c737f3005080313407fc2cdfa@mail.gmail.com>
     [not found]     ` <6249.1123141858@csr.com>
     [not found]       ` <7c737f3005080413226cb67cd4@mail.gmail.com>
     [not found]         ` <7374.1123234276@csr.com>
2005-08-05 17:22           ` Deliverable Mail
2005-08-05 17:50             ` Peter Stephenson [this message]

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=4662.1123264215@csr.com \
    --to=pws@csr.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).