Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: _perforce completer



Michael Denio wrote:
> Hello,
> 
> I made a change to the _perforce completer to optionally restrict the 
> list of changes to only those owned by the current user.  To whom should 
> I send the patch?

zsh-workers.

Note that it should use styles to be sufficiently general.  Something
similar to the jobview style would be appropriate:

# Completion of jobs can also be controlled by the `jobview' style.
# This uses the standard Perforce JobView syntax, and is applied
# in connection with the `max' style.  In other words,
# if you set
#   zstyle ':completion:*:p4-*:jobs' max 0
#   zstyle ':completion:*:p4-*:jobs' jobview 'user=pws'
# then jobs to be completed will be those from the output of
#   p4 jobs -e 'user=pws'
# i.e. those assigned to Perforce user `pws'.

except the form will be a bit different.  One possibility is to allow
e.g.

zstyle ':completion:*:p4-*:changes' changes -u pws

i.e. the argument would be added to `p4 changes'.  Then you could
specify a maximum that way (-m 20).  It would make the `max' style
obsolete.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author