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
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4f28865
WIP [common] Adds basic wrapper for tables
vladimir-kotikov Aug 20, 2015
94fc4b5
WIP [common] Fixes tables wrapper to assign metatable correctly
vladimir-kotikov Sep 9, 2015
3f10c2e
WIP [common] Rework matchers using new table wrapper
vladimir-kotikov Sep 9, 2015
bc8149c
Merge branch 'master' into dev
vladimir-kotikov Sep 9, 2015
89610a3
Merge branch 'master' into dev
chrisant996 Aug 15, 2022
cfc97b1
Fix #103; show also remote branches in git merge.
chrisant996 Aug 15, 2022
fd89185
Fix #117; .init.lua isn't loaded under some circumstances.
chrisant996 Aug 15, 2022
93c1b8f
Fixing #117 requires a change in Cmder.
chrisant996 Aug 15, 2022
2ae1083
Explicitly add the completions directory.
chrisant996 Aug 15, 2022
4ca0fdc
Fix #16; add curl completions.
chrisant996 Aug 15, 2022
d05159d
Fix #145; add sudo argmatcher.
chrisant996 Aug 15, 2022
bc477dd
Rename to path_module so builtin path APIs are available.
chrisant996 Aug 16, 2022
c258089
Fix base git flags bleeding thru to commands.
chrisant996 Aug 16, 2022
bbeb9c9
Smarter completions for git add and git checkout.
chrisant996 Aug 16, 2022
6ca09be
Fix `hide=true` for linked argmatchers.
chrisant996 Aug 16, 2022
57dee1e
Fix #131; add winget completions.
chrisant996 Aug 16, 2022
5c839bb
Simplify help_parser unsupported short circuit.
chrisant996 Aug 16, 2022
481feef
Merge branch 'master' into dev
chrisant996 Aug 16, 2022
c0af933
matchers.ext_files improvements.
chrisant996 Aug 17, 2022
282419f
Add comments for some matchers module exports.
chrisant996 Aug 17, 2022
225d6c0
Add some common argmatchers.
chrisant996 Aug 17, 2022
860c9fb
Add robocopy argmatcher.
chrisant996 Aug 17, 2022
d0fbf81
Some explicit version checks, just in case.
chrisant996 Aug 17, 2022
06d0a76
Add premake5 argmatcher.
chrisant996 Aug 17, 2022
e6ad803
Add msbuild argmatcher.
chrisant996 Aug 17, 2022
cc11140
Add argmatchers for GNU grep and sed.
chrisant996 Aug 17, 2022
32aad28
Better capitalization function in robocopy argmatcher.
chrisant996 Aug 17, 2022
4204e53
Add adb/fastboot/scrcopy argmatchers.
chrisant996 Aug 18, 2022
94cc933
Fix typo in winget complete position.
chrisant996 Aug 18, 2022
c81ed68
Fix #76; better display of yarn run completions.
chrisant996 Aug 19, 2022
856d08d
Merge branch 'master' into dev
chrisant996 Aug 20, 2022
4e378ab
Fix `yarn` completions.
chrisant996 Aug 20, 2022
0114406
Clean luacheck warnings.
chrisant996 Aug 20, 2022
952b1ed
Fix typo in yarn run completions.
chrisant996 Aug 20, 2022
629ebfb
Fix some back-compat issues for v0.4.9.
chrisant996 Aug 20, 2022
e0208ab
Tell luacheck about another Clink API.
chrisant996 Aug 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix base git flags bleeding thru to commands.
`git ls-files` doesn't have a linked argmatcher, so the `git` flags were
bleeding into it.  And etc for other commands.
chrisant996 committed Aug 16, 2022
commit c258089752685022fd69310dc4f9d5b5dfc79270
6 changes: 6 additions & 0 deletions git.lua
Original file line number Diff line number Diff line change
@@ -22,6 +22,8 @@ local dir_matches = clink.dirmatches or matchers.dirs
local files_parser = parser({file_matches})
local dirs_parser = parser({dir_matches})

local looping_files_parser = clink.argmatcher and clink.argmatcher():addarg(clink.filematches):loop()

---
-- Lists remote branches based on packed-refs file from git directory
-- @param string [dir] Directory where to search file for
@@ -1844,6 +1846,8 @@ local function init(argmatcher, full_init)
local linked = linked_parsers[x[1]]
if linked then
table.insert(commands, { x[1]..linked, x[2] })
elseif looping_files_parser then
table.insert(commands, x..looping_files_parser)
else
table.insert(commands, x)
end
@@ -1869,6 +1873,8 @@ local function init(argmatcher, full_init)
local linked = linked_parsers[x]
if linked then
table.insert(commands, x..linked)
elseif looping_files_parser then
table.insert(commands, x..looping_files_parser)
else
table.insert(commands, x)
end