Opening new buffer which is git show commit command
This commit is contained in:
@@ -312,11 +312,18 @@ function MatchAgainstIncludes(s)
|
||||
return nil
|
||||
end
|
||||
|
||||
function MatchGitCommit(s)
|
||||
local command = "git --no-pager show "..s
|
||||
return {kind = "exec", cmd = command, working_dir = GetCurrentBufferDir()}
|
||||
end
|
||||
|
||||
Rules = {
|
||||
GenericTextFileRule,
|
||||
MatchAgainstIncludes,
|
||||
MatchGitCommit,
|
||||
}
|
||||
|
||||
|
||||
function ApplyRules(s)
|
||||
for i = #Rules,1,-1 do
|
||||
rule = Rules[i]
|
||||
|
||||
Reference in New Issue
Block a user