-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Help string support for fish #264
Conversation
52bc563
to
f079a15
Compare
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
==========================================
+ Coverage 82.72% 82.95% +0.23%
==========================================
Files 7 7
Lines 741 751 +10
==========================================
+ Hits 613 623 +10
Misses 128 128
Continue to review full report at Codecov.
|
d05b7a7
to
02fa48e
Compare
@volkov thanks for your work on this, and sorry about the delay in my review. This looks good overall. Can you add a description of this feature, and a rendering of what it looks like in the shell, in the project README under the "fish support" section? Also, it's certainly possible that completions will contain spaces (I'm sure you realize that completions can be produced for values, not just option names). In those cases, can you describe and paste renderings of what happens? How does this code interact with completions that contain both quotes and spaces? Since the only completions that contain spaces are value completions, and those are unlikely to have help, perhaps it's better to skip them instead of splitting them the way you are doing? |
@kislyuk thanks for your review
Yes, before finishing work on it.
I can't find how to set help string for value completions. Tried to use I have added space to subparser name: subparsers.add_parser('basic with space', help="basic help").add_argument('arg', choices=['foo', 'bar', 'baz']) In this it drops help message: I found another issue - help message could contain |
782afd9
to
178acc8
Compare
From my reading, it looks like the original is trying to display all of the aliases together, e.g. Since the previous API hides the internal dict behind a function call For example (not tested):
The actual change will be a little more involved since you'll either have to find all the other places in the code adding string keys and turn them into one element tuples, or account for both strings and tuples when you use the dict. |
49c6816
to
8bb9556
Compare
@evanunderscore that's good idea, I had changed pull request accordingly. |
fa533b6
to
46f284c
Compare
And now I'm investigating problem with my code around |
46f284c
to
ed1f824
Compare
ed1f824
to
4e1dcb7
Compare
5cb820f
to
67e617f
Compare
67e617f
to
73d9fef
Compare
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
==========================================
+ Coverage 82.32% 82.91% +0.58%
==========================================
Files 7 7
Lines 747 749 +2
==========================================
+ Hits 615 621 +6
+ Misses 132 128 -4
Continue to review full report at Codecov.
|
73d9fef
to
1e30270
Compare
1e30270
to
bd65da2
Compare
@kislyuk have a look please |
LGTM - thanks for sticking with this PR through the long development cycle @volkov. I'll roll a release shortly. |
Help string support for fish.
Work in progress.
dfs
and_ARGCOMPLETE_DFS
should probably be renamed to something more meaningful.