zsh-workers
 help / color / mirror / code / Atom feed
* _expand with dynamic named directories (and other issue)
@ 2014-11-07 10:32 Mikael Magnusson
  2015-06-18 11:28 ` PATCH: One small step towards making ~[foo]<tab> work Mikael Magnusson
  0 siblings, 1 reply; 6+ messages in thread
From: Mikael Magnusson @ 2014-11-07 10:32 UTC (permalink / raw)
  To: zsh workers

~[foo]/<tab> with _expand in the completer style currently expands
~[foo] into whatever it expands into, and doesn't enter path
completion. It works correctly for ~/<tab> (eg, leaves the ~/ prefix
alone). Against my own better judgment I looked at _expand and found
out about keep-prefix. Setting that to 'true' indeed fixes the problem
I have, but it seems from the description that it should do what I
want when set to 'changed' as well. The code in the file doesn't make
it clear to me why the [foo] makes a difference.

The following is independent of _expand but ~[foo] tab discards the
brackets and just does named directory completion on foo, for example
expanding to ~foobar if that was a named directory. This may be
dependent on glob_complete to some degree, in that i don't get ~foobar
from ~[foo] without it set, but other weird things happen instead, for
example ~[cvids] turns into ~dl. If anything at this point, I would
either expect a / to be added or for it to expand into the full path
via _expand.

-- 
Mikael Magnusson


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

end of thread, other threads:[~2015-06-20 17:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-07 10:32 _expand with dynamic named directories (and other issue) Mikael Magnusson
2015-06-18 11:28 ` PATCH: One small step towards making ~[foo]<tab> work Mikael Magnusson
2015-06-18 11:38   ` Mikael Magnusson
2015-06-20  2:48     ` PATCH: Step two seems to take us there Mikael Magnusson
2015-06-20 17:03       ` Peter Stephenson
2015-06-20 17:11         ` Mikael Magnusson

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