zsh-workers
 help / color / mirror / code / Atom feed
* minor problems with dynamic directory completion
@ 2015-08-19  5:20 Mikael Magnusson
  0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2015-08-19  5:20 UTC (permalink / raw)
  To: zsh workers

I found this in my Drafts folder, it must have been there at least a
couple of years... It looks like all the things in here are still
broken. I should finish working on the patch to fix ~[a]/<tab> that I
sent a while ago too... (it's only broken if you have a / inside, as
it turned out, so not super important).

~~~~

{~[<tab> doesn't work, nor does ${:-~[<tab>. ~[a]{<tab> produces
results with the { in the middle of the word for static named
directories, ie it produces ~apa{che as a result. If the resulting
string is shorter, the / is not appended and the final letter is
turned into a suffix, ie "~at" + space gives "~a ". ~[a]/{<tab> works
fine though. ~[a]<tab> completes static names too, but treats the
suffix correctly afaict. The only one of these that have actually
happened to me in real usage and not by being evil and thinking up
ways to break it is the last one, where I just wanted it to append a /
for me :).

In my completer for the inside bits, I do some stuff to automatically
append the ], and I noticed that when I use _all_matches, it doesn't
reproduce the ~[ prefix for any but the first one, so I get stuff like
~[a-5] a-4] a-3] etc. Is there any way that could be made to work
easily? I noticed that all-matches for brace completion even manages
to insert the commas and closing brace correctly, which is how I
happened upon the first case in the mail.

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-19  5:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-19  5:20 minor problems with dynamic directory completion 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).