Re: latest stg/git commandline completions code

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Petr Baudis <pasky@...>, Nikolai Weibull <mailing-lists.git@...>
Cc: Blaisorblade <blaisorblade@...>, Git Mailing List <git@...>
Date: Thursday, November 10, 2005 - 2:57 am

On 10 Nov 2005, at 09:23, Petr Baudis wrote:







Maybe reliable and consistent but I think that info would need a bit  
of augmentation to use for specifying autocompletion - for example,  
in the case of:

 > Usage: cg-branch-add BRANCH_NAME LOCATION

BRANCH_NAME should *not* exist so it doesn't make sense to  
autocomplete from the branch list, but in the case of:

 > Usage: cg-fetch [-f] [-v] [BRANCH_NAME]

BRANCH_NAME *must* exist so it makes sense to autocomplete from the  
branch list.

The amount of augmentation is probably not too much -  probably  
sufficient  to specify for each parameter a completion-source(s)  
(heads, branches, filenames, blah) that doesn't get displayed in -- 
help. But this is more information to maintain and get out of date...

I wonder if Nikolai has had thoughts about that for zsh completion?
Hopefully if anything gets added, it would be useful for both zsh and  
bash

(I confess to having pretty much no idea how zsh completion works...)

Ben

-- 
Ben ベン Бэн
http://www.hawaga.org.uk/ben/
My email is high latency but best way to contact me. Alternatively,  
SMS numbers at above URL.






-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: latest stg/git commandline completions code, Blaisorblade, (Tue Oct 25, 10:42 am)
Re: latest stg/git commandline completions code, Ben Clifford, (Tue Nov 8, 6:16 am)
Re: latest stg/git commandline completions code, Petr Baudis, (Wed Nov 9, 6:23 pm)
Re: latest stg/git commandline completions code, Ben Clifford, (Thu Nov 10, 2:57 am)
Re: latest stg/git commandline completions code, Ben Clifford, (Wed Nov 9, 10:03 pm)
Re: latest stg/git commandline completions code, Ben Clifford, (Wed Nov 9, 9:59 pm)
Re: latest stg/git commandline completions code, Petr Baudis, (Thu Nov 10, 5:40 am)
Re: latest stg/git commandline completions code, Ben Clifford, (Tue Nov 15, 11:35 pm)