Skip to content
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

Dev - enhancements and fixes #156

Merged
merged 36 commits into from
Aug 20, 2022
Merged

Dev - enhancements and fixes #156

merged 36 commits into from
Aug 20, 2022

Conversation

chrisant996
Copy link
Collaborator

This adds several argmatchers, applies some enhancements, fixes some bugs, and cleans up luacheck warnings.

vladimir-kotikov and others added 30 commits August 21, 2015 00:32
The "." at the beginning of the ".init.lua" file name marks it as a hidden file
in Linux and some sync programs.  That can cause sync programs to not copy the
file.  Renaming to "!init.lua" resolves that problem, while still ensuring the
script is loaded before any of the other completion scripts.
So, for best compatibility, clink-completions will have both .init.lua and
!init.lua files.
This enables newer Clink versions to load and use completions scripts on demand,
even in Cmder (which manually loads clink-completions scripts, so Clink doesn't
know about their script directory).
Requires Clink v1.3.40 to work fully properly.
`git ls-files` doesn't have a linked argmatcher, so the `git` flags were
bleeding into it.  And etc for other commands.
It's very unusual to add or checkout unchanged files.

So `git add` uses `git status -uall` to generate file matches.
And `git checkout` uses `git status -uno` to generate file matches.
Return nothing, rather than returning an empty table.
This makes it easier for a caller to recognize it's not supported.
- It uses new APIs when available.
- It accepts a list of wildcards and adds them all at once, which makes
adding directories much more efficient (only one time).
This colors the yarn run matches.

In old Clink versions, it has no effect.
While improving `yarn run` completions, `yarn` completions lost the
`run` matches.

Also, apply color to yarn local module matches, to differentiate them
from yarn commands.
@codecov
Copy link

codecov bot commented Aug 20, 2022

Codecov Report

Merging #156 (e0208ab) into master (9ab9342) will decrease coverage by 0.96%.
The diff coverage is 27.27%.

@@            Coverage Diff             @@
##           master     #156      +/-   ##
==========================================
- Coverage   54.16%   53.20%   -0.97%     
==========================================
  Files           5        5              
  Lines         144      156      +12     
==========================================
+ Hits           78       83       +5     
- Misses         66       73       +7     
Impacted Files Coverage Δ
modules/path.lua 14.63% <11.11%> (-0.52%) ⬇️
modules/clink_version.lua 100.00% <100.00%> (ø)
modules/funclib.lua 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@chrisant996 chrisant996 merged commit fd6c9d1 into master Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants