-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Multiline completion problem #356
Comments
Thanks for the report, but I cannot identify the problem unless the completion setting is provided. How did you set up the completion for $ register-python-argcomplete ros2
# or, if not available, could you try the following instead?
$ register-python-argcomplete3 ros2 |
Thank you for the quick response! My settings are the following:
|
Thank you for your quick response. Could you copy and paste the output of the following command? $ ( COMP_LINE='ros2 topic pub /cmd_vel geometry_msgs/msg/Twist ' COMP_POINT=${#COMP_LINE} COMP_TYPE=9
export "${!COMP_@}"
_ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \
_ARGCOMPLETE=1 _ARGCOMPLETE_SUPPRESS_SPACE=0 \
ros2 8>&1 9>&2 1>/dev/null 2>/dev/null) |
|
Thanks. Hmm, maybe I now know what is happening. What are the outputs of the following two cases? $ ( COMP_LINE='ros2 topic pub /cmd_vel geometry_msgs/msg/Twist "l' COMP_POINT=${#COMP_LINE} COMP_TYPE=9
export "${!COMP_@}"
_ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \
_ARGCOMPLETE=1 _ARGCOMPLETE_SUPPRESS_SPACE=0 \
ros2 8>&1 9>&2 1>/dev/null 2>/dev/null)
$ ( COMP_LINE='ros2 topic pub /cmd_vel geometry_msgs/msg/Twist l' COMP_POINT=${#COMP_LINE} COMP_TYPE=9
export "${!COMP_@}"
_ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \
_ARGCOMPLETE=1 _ARGCOMPLETE_SUPPRESS_SPACE=0 \
ros2 8>&1 9>&2 1>/dev/null 2>/dev/null) |
For the first one:
For the second:
|
Thank you. There are two issues.
Assumption on quotingBash assumes that the generated candidates are already properly quoted when they don't match filenames by default (and the behavior can be configured by However, the actual settings for the programmable completions are usually not properly implemented to quote the results. To remedy these half-broken settings, ble.sh assumes by default that the generated candidates are not properly quoted, though this is different from Bash's assumption. On the other hand, the completions generated by This can be easily fixed in ble.sh as it is easy to distinguish the completion settings generated by Newlines in
|
ble version: 0.4.0-devel3+1a5c451c
Bash version: 5.1.16(1)-release
Hi,
I encountered a problem with multiline completions when using the ble.sh.
Without it I get nice multilne completions in bash, like this:
But when it is activated, the result is separated into multiple options and it doesn't work as intended.
Is it something that can be configured in the settings?
Thank you very much for your help in advanced!
The text was updated successfully, but these errors were encountered: