-
Notifications
You must be signed in to change notification settings - Fork 127
Bash completion #386
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
Bash completion #386
Conversation
…ting to stderr to bypass bash completion handling.
…ion logic in the argcomplete function but doesn't test actual completion in bash.
Codecov Report
@@ Coverage Diff @@
## master #386 +/- ##
==========================================
+ Coverage 87.74% 88.98% +1.23%
==========================================
Files 8 8
Lines 2751 2615 -136
==========================================
- Hits 2414 2327 -87
+ Misses 337 288 -49
Continue to review full report at Codecov.
|
| outstr = ifs.join([filler, outstr]) | ||
|
|
||
| output_stream.write(outstr.encode(argcomplete.sys_encoding)) | ||
| comp_type = int(os.environ["COMP_TYPE"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange. But if it works, cool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. The first tab press comes in as 9. Makes total sense.
Figured out how to detect which time the user pressed tab. Changed the argument hinting to print to stderr after the first tab.