much improved zsh completion script
John A Meinel
john at arbash-meinel.com
Thu Oct 20 05:55:57 BST 2005
Steve Borho wrote:
> On Wednesday 19 October 2005 10:11 pm, John A Meinel wrote:
>
>>Steve Borho wrote:
>>
>>>2) Optimally, bzr would make it easy to get lists of files in the context
>>>of the current directory. For instance, if you were working four subdirs
>>>deep from the branch root, you would like to be able to type 'bzr add
>>><TAB>' and have zsh complete a list of unknown files in the current
>>>directory.
>>>
>>>I couldn't figure out how to make this work with the current commands, so
>>>the bzr add and bzr commit completion functions only work properly from
>>>the repository root.
>>
>>bzr status .
>>Will only return the changes for files beneath the current working
>>directory. However, they are returned with their full path, so you might
>>need to do "bzr root" first.
>
>
> For my purposes, it would be infinitely more useful for the various listing
> commands to support the '.' argument. Having 'bzr unknowns .' return just
> the list of unknowns in the current directory would be perfect. Mainly
> because there's no simple way for me to prune the list of files that bzr
> status returns.
>
> The 'bzr ls' command doesn't seem to be documented anywhere that I can find.
> Is that command intended to eventually handle some of these types of queries?
> something like this? bzr ls --added --modified --deleted .
That would be the idea. It is actually a hidden command, and isn't fully
implemented. It was designed with scripting in mind, though. And so it
probably just needs to be finished.
If you have ideas about what you want, please state them now, so that we
can get them in. :)
>
> I think this would be useful for more than just shell completions. It would
> be very handy for scripting in general.
>
> BTW: I've just stumbled upon the shell-complete function's ability to spit out
> a list of arguments for each command. This has promise, but I think it would
> need a bit of work before zsh's compsys could use the output directly.
I think it is also in its growing stage.
John
=:->
>
> --
> Steve
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051019/233f8f87/attachment.pgp
More information about the bazaar
mailing list