Package: subversion Version: 1.3.2-5 Severity: wishlist Tags: patch I wrote a small patch to add <TAB> completion support for 'ls'.
regards Stefan -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-2-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages subversion depends on: ii libapr0 2.0.55-4.1 the Apache Portable Runtime ii libc6 2.3.6-19 GNU C Library: Shared libraries ii libsvn0 1.3.2-5 Shared libraries used by Subversio subversion recommends no packages. -- no debconf information -- Stefan Völkel mobile: +49.170.79177.17 Millenux GmbH phone: +49.711.88770.300 Lilienthalstraße 2 phone: +49.89.608665.27 70825 Stuttgart-Korntal fax: +49.711.88770.349 -= linux without limits -=- http://linux.zSeries.org/ =-
--- /etc/bash_completion.d/subversion 2006-03-28 11:16:48.000000000 +0200 +++ subversion 2006-10-02 15:08:27.845437250 +0200 @@ -14,6 +14,7 @@ { local cur cmds cmdOpts pOpts mOpts rOpts qOpts nOpts optsParam opt local helpCmds optBase i + local path word COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} @@ -44,6 +45,20 @@ if [[ ${COMP_WORDS[1]} != @($helpCmds) ]] && \ [[ "$cur" != -* ]] || \ [[ ${COMP_WORDS[COMP_CWORD-1]} == @($optsParam) ]] ; then + + case ${COMP_WORDS[1]} in + ls) + path=${COMP_WORDS[COMP_CWORD]} + word=$(echo $path | sed 's,.*/,,') + path=$(echo $path | sed 's,/'$word'$,,') + + COMPREPLY=( $(svn ls $path 2>/dev/null | \ + grep -e "^$word" | \ + sed -e "s,^,$path/," \ + -e 's,^.*:,,' -e 's, $,,') ) + ;; + esac + return 0 fi @@ -218,7 +233,7 @@ return 0 } -complete -F _svn -o default svn +complete -F _svn -o nospace svn _svnadmin () {
signature.asc
Description: OpenPGP digital signature