Skip to content

Commit f6eb9d8

Browse files
committed
Fix processes bar cursor index display error and add nord theme
1 parent 8a143ab commit f6eb9d8

File tree

7 files changed

+40
-8
lines changed

7 files changed

+40
-8
lines changed

Diff for: README.md

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
- [Features](#features)
1818
- [Install](#install)
19+
- [Linux](#linux)
1920
- [Font](#font)
2021
- [Build](#build)
2122
- [Support system](#support-system)
@@ -46,6 +47,8 @@
4647

4748
> I am still try to make more install method! Like `HomeBrew` or `snap`
4849
50+
#### Linux
51+
4952
You can go to [latest release](https://github.com/MHNightCat/superfile/releases/latest) and download binary file
5053

5154
cd to download and move binary to bin after that please install [font](#font)
@@ -55,6 +58,17 @@ chmod +x ./spf
5558
sudo mv ./spf /bin/
5659
```
5760

61+
#### MacOs
62+
63+
Clone whole repo and run `build.sh`
64+
```bash
65+
git clone https://github.com/MHNightCat/superfile
66+
cd ./superfile
67+
./build.sh
68+
```
69+
70+
After that please install [font](#font)
71+
5872
### Font
5973

6074
> [!WARNING]

Diff for: THEMELIST.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
## gruvbox
22

3-
![](/asset/theme/gruvbox.png)
3+
- AUTHOR: github.com/MHNightCat
4+
5+
![](/asset/theme/gruvbox.png)
6+
7+
## nord
8+
9+
- AUTHOR: github.com/ramses-eltany
10+
11+
![](/asset/theme/nord.png)

Diff for: changelog.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@
22

33
All notable changes to this project will be documented in this file. Dates are displayed in UTC(YYYY/MM/DD).
44

5-
## v1.0.0
5+
# v1.0.1
6+
7+
> 2024/04/xx
8+
9+
#### Update
10+
#### Bug fix
11+
- Fix processes bar cursor index display error[``]()
12+
13+
# [**v1.0.0**](https://github.com/MHNightCat/superfile/releases/tag/v1.0.0)
614

715
> 2024/04/06
816
9-
### Update
17+
##### Update
1018
- Auto download folder [`96a3a71`](https://github.com/MHNightCat/superfile/commit/96a3a7108eb7c4327bad3424ed55e472ec78049f)
1119
- Auto initialize configuration [`96a3a71`](https://github.com/MHNightCat/superfile/commit/96a3a7108eb7c4327bad3424ed55e472ec78049f)
1220
- Add version subcommand [`ee22df3`](https://github.com/MHNightCat/superfile/commit/ee22df3c7700adddb859ada8623f6c8b038e8087)
13-
### Bug fix
21+
##### Bug fix
1422
- Fix creating an Item when the file panel has no Item will cause an error [`9ee1d86`](https://github.com/MHNightCat/superfile/commit/9ee1d860192182803d408c5046ca9f5255121698)
1523
- Fix delete mupulate Item will cause cursor error [`ee22df3`](https://github.com/MHNightCat/superfile/commit/ee22df3c7700adddb859ada8623f6c8b038e8087)
16-
## Beta 0.1.0
24+
25+
# [**Beta 0.1.0**](https://github.com/MHNightCat/superfile/releases/tag/v0.1.0-beta)
1726

1827
> 2024/04/06
1928

Diff for: src/components/function.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,9 @@ func returnMetaData(m model) model {
361361
filePath := panel.element[panel.cursor].location
362362

363363
fileInfo, err := os.Stat(filePath)
364-
if err != nil {
364+
if os.IsNotExist(err) {
365365
OutPutLog("Return meta data function get file state error", err)
366+
return m
366367
}
367368
if fileInfo.IsDir() {
368369
m.fileMetaData.metaData = append(m.fileMetaData.metaData, [2]string{"FolderName", fileInfo.Name()})

Diff for: src/components/modelRender.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func ProcessBarRender(m model) string {
171171
processRender += "\n  No any process"
172172
}
173173
courseNumber := 0
174-
if m.processBarModel.cursor == 0 {
174+
if len(m.processBarModel.processList) == 0 {
175175
courseNumber = 0
176176
} else {
177177
courseNumber = m.processBarModel.cursor + 1

Diff for: src/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var HomeDir = getHomeDir()
2121
var SuperFileMainDir = HomeDir + "/.superfile"
2222

2323
const (
24-
currentVersion string = "v1.0.0"
24+
currentVersion string = "v1.0.1"
2525
latestVersionURL string = "https://api.github.com/repos/MHNightCat/superfile/releases/latest"
2626
latestVersionGithub string = "github.com/MHNightCat/superfile/releases/latest"
2727
themeZip string = "https://github.com/MHNightCat/superfile/raw/main/theme.zip"

Diff for: theme.zip

537 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)