Dear developers,
please find attached yet another patch to improve the bash completion.
It addresses most comments done on the 3 previous submissions. I'm pretty
happy with the result. I think it is a significant improvement over the
current version, and it looks good enough for me.
[[[
Improve bash auto-completion for the 'svn' command:
- there is a "real" parser to check for what is available
and deduce what can be suggested further.
- although it is not a good practice, mixed options and arguments
is supported by the completion as it is by the svn command.
- the completion works in the middle of a line.
- property names are completed: see comments about issues related to handling
":" within property names although it is a word completion separator...
- user-defined file and revision properties can be added
with environment variables SVN_FILE_PROPS and SVN_REV_PROPS.
- unknown properties are assumed to be simple file properties.
- --revprop and --revision options are forced to revision properties
as they are mandatory in this case.
- argument values are suggested to some other options, eg directory names
for --config-dir.
- values suggested to some options can be extended with environment variables,
so as to keep the default completion list short.
* tools/client-side/bash_completion
add shell-intelligence to _svn completion function
]]]
--
Fabien.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 19 09:45:39 2005