zsh-users
 help / color / mirror / code / Atom feed
* dev-19 -> 20: special-dirs changed?
@ 2000-04-07 15:16 Andy Spiegl
  2000-04-09  0:01 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Spiegl @ 2000-04-07 15:16 UTC (permalink / raw)
  To: zsh-users

Hi!

I've got this:
 zstyle ':completion:*:paths' special-dirs yes
in my dot files, because I like . and .. to be completed (and / appended),
too.  A few days I upgraded from 3.1.6-dev-19 to 3.1.6-dev-20.  Now the
behavior has changed.  Hitting TAB after typing "cd .." still works, but
after "mv foo .." or "ls .." doesn't.  It also doesn't complete after
"cd bar/..".  I supposse something has changed somewhere...

Could some kind soul please tell me what settings I need to get the old
behavior back?

Thanks a mill!
 Andy.

-- 
 E-Mail: Andy@spiegl.de     URL: http://andy.spiegl.de
 PGP/GPG: see headers
                                o      _     _         _
  --------- __o       __o      /\_   _ \\o  (_)\__/o  (_)
  ------- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/
  ------ (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Do you really want all files not to be deleted (Y/n) ?


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

* Re: dev-19 -> 20: special-dirs changed?
  2000-04-07 15:16 dev-19 -> 20: special-dirs changed? Andy Spiegl
@ 2000-04-09  0:01 ` Bart Schaefer
  2000-05-25 10:46   ` Andy Spiegl
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2000-04-09  0:01 UTC (permalink / raw)
  To: Andy Spiegl, zsh-users

On Apr 7,  5:16pm, Andy Spiegl wrote:
} Subject: dev-19 -> 20: special-dirs changed?
}
} I've got this:
}  zstyle ':completion:*:paths' special-dirs yes
} in my dot files, because I like . and .. to be completed (and / appended),
} too.  A few days I upgraded from 3.1.6-dev-19 to 3.1.6-dev-20.  Now the
} behavior has changed.  Hitting TAB after typing "cd .." still works, but
} after "mv foo .." or "ls .." doesn't.  It also doesn't complete after
} "cd bar/..".  I supposse something has changed somewhere...

_path_files now recognizes special-dirs only when one of -f or -/ is used.
The doc says that -f means "complete all files."  However, _files always
calls `_path_files -g ...' so there's no way to get special-dirs to be
recognized for default file completions.

This is presumably a bug, but whether it's a bug in _path_files or _files
I don't know.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


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

* Re: dev-19 -> 20: special-dirs changed?
  2000-04-09  0:01 ` Bart Schaefer
@ 2000-05-25 10:46   ` Andy Spiegl
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Spiegl @ 2000-05-25 10:46 UTC (permalink / raw)
  To: zsh-users

Bart Schaefer wrote:
> _path_files now recognizes special-dirs only when one of -f or -/ is used.
> The doc says that -f means "complete all files."  However, _files always
> calls `_path_files -g ...' so there's no way to get special-dirs to be
> recognized for default file completions.
> 
> This is presumably a bug, but whether it's a bug in _path_files or _files
> I don't know.

Hm, haven't heard anything about this issue since.  Did it make it onto
the bug list?  I still find it pretty annoying that completion doesn't
work in these cases. :-(

I investigated a little more:
Here are cases where no slash is appended after hitting TAB:
cd bar/..
mv foo ..
mv foo ../bar/..
ls ..
ls ../bar/..

And here are cases where a slash is appended:
cd ..
cd ../bar/..
mv foo ../bar
ls ../bar

Thanks for any help,
 Andy.

-- 
 E-Mail: Andy@spiegl.de     URL: http://andy.spiegl.de
 PGP/GPG: see headers
                                o      _     _         _
  --------- __o       __o      /\_   _ \\o  (_)\__/o  (_)
  ------- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/
  ------ (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Computers are like air conditions:
 They work as long as you don't open windows.


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

end of thread, other threads:[~2000-05-25 10:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-07 15:16 dev-19 -> 20: special-dirs changed? Andy Spiegl
2000-04-09  0:01 ` Bart Schaefer
2000-05-25 10:46   ` Andy Spiegl

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