> is it possible to also add auto-completion for '.launch.xml' files?
If you use bash, you need to write simple bash scripts in your .bashrc
like below:
# after `source $ROS_ROOT/setup.sh'
function _roscomplete_launch_xml {
_roscomplete_search_dir "-type f -regex .*\.\(launch\|xml\)" # patched
if [[ $COMP_CWORD == 1 ]]; then
arg="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=($(compgen -f -X "!*.{launch, xml}" -- ${arg})
${COMPREPLY[@]}) # patched
fi
}
complete -F "_roscomplete_launch_xml" -o filenames -o plusdirs "roslaunch"
-- Ryohei
On Tue, Apr 13, 2010 at 5:25 PM, Rosen Diankov <
rosen.diankov@gmail.com> wrote:
> is it possible to also add auto-completion for '.launch.xml' files? we
> would really like to have all our xml files to have a .xml extension
> and roslaunch stopped tab-completing for anything other than
> .launch...
> thanks,
> rosen,
> _______________________________________________
> ros-users mailing list
> ros-users@code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>