Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zshcompletion add trailing := to roslaunch args:=value completion #259

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

pseyfert
Copy link
Contributor

(I'm very new to ros, please check if this introduces undesired effects)

The help message of roslaunch says

roslaunch -h
Usage: roslaunch [options] [package] <filename> [arg_name:=value...]
       roslaunch [options] <filename> [<filename>...] [arg_name:=value...]

If <filename> is a single dash ('-'), launch XML is read from standard input.

Options:
...

So far the roslaunch completion in zsh completes arg_names. As far as I understand, these will always be trailed with :=. This change adds the trailing := after argument names.

@dirk-thomas
Copy link
Member

Thanks for the creating the PR.

please check if this introduces undesired effects

Please do some amount of testing yourself and also post the commands you tried before as well as after the patch including the behavior you get.

@dirk-thomas
Copy link
Member

@pseyfert Friendly ping.

@pseyfert
Copy link
Contributor Author

hi,

comparison

old

roslaunch <ourpackage> <ourapplication> rosbag_⇥
roslaunch <ourpackage> <ourapplication> rosbag_name␣

new

roslaunch <ourpackage> <ourapplication> rosbag_⇥
roslaunch <ourpackage> <ourapplication> rosbag_name:=

other completions

cd ⇥

suggests a list of all local directories (before and after, unchanged)

rosbag record ⇥

w/o running roscore inserts a space (before and after, unchanged)

rostopic ⇥
bw    echo  find  hz    info  list  pub   type

before and after, unchanged

rostest ⇥

suggests packages (before and after, unchanged)

rostest <ourpackage> ⇥

suggests applications (before and after, unchanged)

rostest <ourpackage> <ourapplication> ⇥

suggests local files and directories (before and after, unchanged)

roslaunch -⇥

doesn't suggest anything (before and after, unchanged)

@dirk-thomas
Copy link
Member

Thanks for the improvement.

@dirk-thomas dirk-thomas merged commit fca9829 into ros:noetic-devel Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants