mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
23302: complete properties after svn propget and propedit.
This commit is contained in:
parent
8f0fefdbfd
commit
ad2d19e2e6
2 changed files with 17 additions and 0 deletions
|
@ -3,6 +3,9 @@
|
|||
* 23301: Paul Ackersviller: Functions/Misc/add-zsh-hook:
|
||||
fix semicolon mistyped as a colon.
|
||||
|
||||
* 23302: Completion/Unix/Command/_subversion: complete properties
|
||||
after svn propget and propedit.
|
||||
|
||||
2007-04-19 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Config/version.mk: set release string to 4.3.4-dev-0.
|
||||
|
|
|
@ -72,6 +72,12 @@ _svn () {
|
|||
'*:file:_files -g "*(e:_svn_controlled:)"'
|
||||
)
|
||||
;;
|
||||
(propget|propedit)
|
||||
args+=(
|
||||
'1:property name:_svn_props'
|
||||
'2:target: _alternative "files:file:_files" "urls:URL:_svn_urls"'
|
||||
)
|
||||
;;
|
||||
(propset)
|
||||
args=(
|
||||
':propname:(svn:ignore svn:keywords svn:executable svn:eol-style svn:mime-type svn:externals svn:needs-lock)'
|
||||
|
@ -234,6 +240,14 @@ _svnadmin_commands() {
|
|||
compadd "$@" -k _svnadmin_cmds || compadd "$@" ${(s.:.)_svnadmin_cmds}
|
||||
}
|
||||
|
||||
(( $+functions[_svn_props] )) ||
|
||||
_svn_props() {
|
||||
local properties
|
||||
|
||||
properties=( ${${(M)${(f)"$(svn proplist 2>/dev/null)"}:# [^ ]*}# } )
|
||||
compadd "$@" -a properties && return 0
|
||||
}
|
||||
|
||||
_subversion () {
|
||||
case $service in
|
||||
(svn) _svn "$@" ;;
|
||||
|
|
Loading…
Reference in a new issue