Skip to content

Conversation

@anselor
Copy link
Contributor

@anselor anselor commented May 4, 2018

Figured out how to detect which time the user pressed tab. Changed the argument hinting to print to stderr after the first tab.

@anselor anselor requested a review from tleonhardt as a code owner May 4, 2018 18:47
@codecov
Copy link

codecov bot commented May 4, 2018

Codecov Report

Merging #386 into master will increase coverage by 1.23%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
cmd2/argparse_completer.py 90.7% <ø> (+4.06%) ⬆️
cmd2/argcomplete_bridge.py 17.28% <0%> (+11.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c051c84...7486bae. Read the comment docs.

tleonhardt
tleonhardt previously approved these changes May 4, 2018
outstr = ifs.join([filler, outstr])

output_stream.write(outstr.encode(argcomplete.sys_encoding))
comp_type = int(os.environ["COMP_TYPE"])
Copy link
Member

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.

Copy link
Contributor Author

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.

@tleonhardt tleonhardt added this to the 0.9.0 milestone May 5, 2018
@tleonhardt tleonhardt merged commit 92fdf41 into master May 5, 2018
@tleonhardt tleonhardt deleted the bash_completion branch May 5, 2018 02:21
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.

3 participants