Re: [ros-users] roslaunch .launch.xml extension

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ryohei Ueda
Date:  
To: ros-users
Subject: Re: [ros-users] roslaunch .launch.xml extension
> 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 <> 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
>
> https://code.ros.org/mailman/listinfo/ros-users
>