git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Calling all bash completion experts..
@ 2006-11-23 17:45 Linus Torvalds
  2006-11-25  7:13 ` Shawn Pearce
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Torvalds @ 2006-11-23 17:45 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Git Mailing List


So, I'm a happy but clueless user of the bash completion, and one thing 
drives me wild: when it has found an exclusive completion, it doesn't add 
the final space at the end, but just beeps at you when you <tab> again.

So I do "git repa<tab>" and get "git repack", which is fine, but I really 
_wanted_ to get "git repack " (with the space at the end), since I've now 
got a unique command, and that's the normal completion behaviour (ie I 
want it to act the same way that "git-repa<tab>" would have acted).

The same is true of filename arguments, btw:

	git commit cont<tab>com<tab><tab>

gives me

	git commit contrib/completion/git-completion.bash

but again, it doesn't seem to do the right thing about the fact that it 
was the unique choice, so it didn't add the final space, and when you 
press <tab> more to get what the other choices are, it doesn't show you 
any other choices (because there are none).

Now, without knowing the completion syntax, I assume it's the "-o nospace" 
things in the completion file. So I'm wondering _why_ that "nospace" is 
there, and whether this could be fixed?


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

end of thread, other threads:[~2006-11-26  4:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-23 17:45 Calling all bash completion experts Linus Torvalds
2006-11-25  7:13 ` Shawn Pearce
2006-11-25 19:08   ` Linus Torvalds
2006-11-26  4:03     ` Shawn Pearce

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