Skip to content

Commit ac669f0

Browse files
author
konoui
committed
bug fix index filepath
1 parent 4ce7be5 commit ac669f0

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ clean:
6363

6464
## Report coverage
6565
cover:
66+
export alfred_workflow_data=$(shell mktemp -d); \
6667
go test -coverprofile=cover.out ./...
6768
go tool cover -html=cover.out -o cover.html
6869

cmd/testdata/test_output_git-checkout_with_fuzzy.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
},
1313
"autocomplete": "git checkout"
1414
},
15+
{
16+
"title": "git check attr",
17+
"subtitle": "Platforms: common",
18+
"arg": "git check attr --platform common",
19+
"icon": {
20+
"path": "candidate.png"
21+
},
22+
"autocomplete": "git check attr"
23+
},
1524
{
1625
"title": "git check ignore",
1726
"subtitle": "Platforms: common",
@@ -21,6 +30,33 @@
2130
},
2231
"autocomplete": "git check ignore"
2332
},
33+
{
34+
"title": "git check mailmap",
35+
"subtitle": "Platforms: common",
36+
"arg": "git check mailmap --platform common",
37+
"icon": {
38+
"path": "candidate.png"
39+
},
40+
"autocomplete": "git check mailmap"
41+
},
42+
{
43+
"title": "git checkout index",
44+
"subtitle": "Platforms: common",
45+
"arg": "git checkout index --platform common",
46+
"icon": {
47+
"path": "candidate.png"
48+
},
49+
"autocomplete": "git checkout index"
50+
},
51+
{
52+
"title": "git check ref format",
53+
"subtitle": "Platforms: common",
54+
"arg": "git check ref format --platform common",
55+
"icon": {
56+
"path": "candidate.png"
57+
},
58+
"autocomplete": "git check ref format"
59+
},
2460
{
2561
"title": "git cherry pick",
2662
"subtitle": "Platforms: common",

pkg/tldr/pages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (t *Tldr) Expired(ttl time.Duration) bool {
123123
}
124124

125125
func (t *Tldr) indexFilePath() string {
126-
return filepath.Join(t.path, getLangDir(languageCodeEN), "index.json")
126+
return filepath.Join(t.path, "index.json")
127127
}
128128

129129
// age return the time since the data exist at

0 commit comments

Comments
 (0)