git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [QUERY] How do you sort completions?
@ 2013-05-24 11:33 Ramkumar Ramachandra
  2013-05-24 13:11 ` Felipe Contreras
  2013-05-24 16:12 ` SZEDER Gábor
  0 siblings, 2 replies; 8+ messages in thread
From: Ramkumar Ramachandra @ 2013-05-24 11:33 UTC (permalink / raw)
  To: Git List; +Cc: SZEDER Gábor, Felipe Contreras

Hi,

I'm not able to sort completions for some weird reason.  No matter
what I order I insert stuff into COMPREPLY, bash seems to auto-sort
them lexically.  I tried to pass --sort='-committerdate' to git
for-each-ref so I can get a sensible 'git checkout <TAB>' reply, and
I'm very annoyed that it doesn't work.

I thought it was bash's complete builtin doing the implicit sorting,
so I read the manual with no success.  Is readline doing it?  If so,
why am I not getting the ordering even in zsh (which doesn't use
readline)?

What am I missing?

Ram

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

end of thread, other threads:[~2013-05-28 10:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-24 11:33 [QUERY] How do you sort completions? Ramkumar Ramachandra
2013-05-24 13:11 ` Felipe Contreras
2013-05-28 10:23   ` SZEDER Gábor
2013-05-24 16:12 ` SZEDER Gábor
2013-05-24 16:18   ` Ramkumar Ramachandra
2013-05-24 16:22     ` Antoine Pelisse
2013-05-24 18:26       ` Ramkumar Ramachandra
2013-05-24 18:20     ` Marc Khouzam

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