mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
Adapt to upstream gitcha API
This commit is contained in:
parent
df15d81dbb
commit
be478cbaf3
3 changed files with 11 additions and 4 deletions
2
go.mod
2
go.mod
|
|
@ -12,7 +12,7 @@ require (
|
|||
github.com/mattn/go-runewidth v0.0.9
|
||||
github.com/meowgorithm/babyenv v1.3.0
|
||||
github.com/microcosm-cc/bluemonday v1.0.4 // indirect
|
||||
github.com/muesli/gitcha v0.0.0-20200822072946-4065b4f2ba56
|
||||
github.com/muesli/gitcha v0.0.0-20200822081321-a2a5e01d2e54
|
||||
github.com/muesli/reflow v0.1.1-0.20200715144030-a312cb5b2d8d
|
||||
github.com/muesli/termenv v0.7.0
|
||||
github.com/spf13/cobra v1.0.0
|
||||
|
|
|
|||
4
go.sum
4
go.sum
|
|
@ -107,8 +107,8 @@ github.com/mikesmitty/edkey v0.0.0-20170222072505-3356ea4e686a/go.mod h1:v8eSC2S
|
|||
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
|
||||
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/muesli/gitcha v0.0.0-20200822072946-4065b4f2ba56 h1:H1SHFc5IXgYgUZpxXeOWC0CZvllald8h2gVCUtNfTGc=
|
||||
github.com/muesli/gitcha v0.0.0-20200822072946-4065b4f2ba56/go.mod h1:Ri8m9TZS4+ORG4JVmVKUQcWZuxDvUW3UKxMdQfzG2zI=
|
||||
github.com/muesli/gitcha v0.0.0-20200822081321-a2a5e01d2e54 h1:4SwuTPgw/ctzxFNLFk/Hs397Po4QU5tlDn8EKa7T0ks=
|
||||
github.com/muesli/gitcha v0.0.0-20200822081321-a2a5e01d2e54/go.mod h1:Ri8m9TZS4+ORG4JVmVKUQcWZuxDvUW3UKxMdQfzG2zI=
|
||||
github.com/muesli/go-app-paths v0.2.1 h1:Qi+2igkDX2aPqyRddp7P0sMQIBwBqhkfQfNcjdGjL6Y=
|
||||
github.com/muesli/go-app-paths v0.2.1/go.mod h1:SxS3Umca63pcFcLtbjVb+J0oD7cl4ixQWoBKhGEtEho=
|
||||
github.com/muesli/reflow v0.1.0/go.mod h1:I9bWAt7QTg/que/qmUCJBGlj7wEq8OAFBjPNjc6xK4I=
|
||||
|
|
|
|||
9
ui/ui.go
9
ui/ui.go
|
|
@ -400,7 +400,14 @@ func findLocalFiles() tea.Msg {
|
|||
return errMsg(err)
|
||||
}
|
||||
|
||||
ch := gitcha.FindFileFromList(cwd, []string{"*.md"})
|
||||
ch, err := gitcha.FindFiles(cwd, []string{"*.md"})
|
||||
if err != nil {
|
||||
if debug {
|
||||
log.Println("error finding local files:", err)
|
||||
}
|
||||
return errMsg(err)
|
||||
}
|
||||
|
||||
return initLocalFileSearchMsg{ch: ch, cwd: cwd}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue