Smart Auto-completion in SVN (and other programs!)

Posted by Jimmy on Server Fault See other posts from Server Fault or by Jimmy
Published on 2010-04-23T12:31:20Z Indexed on 2010/04/23 12:33 UTC
Read the original article Hit count: 151

Filed under:
|
|
|

When I type "svn add path/to/somefile..." and tab to autocomplete, the system should ONLY complete files/directories that are NOT under currently under SVN control. Likewise, when I commit, remove or resolve files, the tab completion should only complete files that are relevant to what I'm doing. This is especially important in SVN where I can waste thousands of keystrokes typing long path and file names, but it of applies to other programs.

I know bash has a bash_completion file that can be used to programatically alter this behaviour but I've not found a decent example of SVN completion which actually completes file names rather than SVN command names.

My question is: Does anyone have such a setup? Does anyone use a different shell or tool that does something similar? Has anyone given this any thought?

© Server Fault or respective owner

Related posts about command-line

Related posts about svn