tcsh: Fix autocompletion for no single-hyphen args#112
tcsh: Fix autocompletion for no single-hyphen args#112casperdcl merged 5 commits intoiterative:mainfrom
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
==========================================
- Coverage 89.62% 88.66% -0.96%
==========================================
Files 3 3
Lines 347 353 +6
==========================================
+ Hits 311 313 +2
- Misses 36 40 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
This seems to break things a little (at least on bash).
before:
main$ eval "$(PYTHONPATH=. python examples/customcomplete.py completion bash)"
main$ customcomplete <TAB>
completion processafter:
fix-singlehyphen$ eval "$(PYTHONPATH=. python examples/customcomplete.py completion bash)"
fix-singlehyphen$ customcomplete <TAB>
fix-singlehyphen$ customcomplete completion <TAB>
fix-singlehyphen$ customcomplete completion bash
That's weird, I only changed the csh function, and this commit to avoid test failures. I should rebase and retest this. |
be2eed3 to
5f678ec
Compare
|
Rebased and re-tested, including that test you mentioned, works for me. |
Sounds like the test failure is not my fault, |
336c7ad to
d73a29e
Compare
|
Thanks! Rebased now over #139 (should merge that first). Better now? |
|
LGTM, you can merge this. |
If the parser has no single-hyphen options, the tcsh template would generate a syntax error. Include a hack to that the autocompletion for the double-hyphen selection does not add an extra space at the end.
- Document "root_prefix" non-usage - Use raw strings if possible - Sort options (cosmetic)
d73a29e to
5a8d3ea
Compare
5a8d3ea to
ce9ea94
Compare
ce9ea94 to
3df3b2c
Compare
If the parser has no single-hyphen options, the tcsh template would
generate a syntax error.
Include a hack to that the autocompletion for the double-hyphen
selection does not add an extra space at the end.
Another fix to the tcsh template support, see #56 #57 #58