mirror of
https://github.com/yorukot/superfile.git
synced 2025-02-06 09:26:18 +00:00
Update changelog and update directory name
This commit is contained in:
parent
bef933a269
commit
3361a5341a
@ -17,6 +17,8 @@ All notable changes to this project will be documented in this file. Dates are d
|
||||
- Confirm delete files [``]()
|
||||
- Support windows for get well known directories [`d4db820`](https://github.com/yorukot/superfile/commit/d4db820ba839603df209dcce05468902739f301f)
|
||||
- Support text file preview [`#26`](https://github.com/yorukot/superfile/issues/26)
|
||||
- Support directory preview [`#26`](https://github.com/yorukot/superfile/issues/26)
|
||||
- Improve mouse scrolling delay [`f734292`](https://github.com/yorukot/superfile/commit/f7342921d49d87f1bc633c9f8e19fe6845fbbf26)
|
||||
|
||||
#### Bug fix
|
||||
- Recursive symlink crashes superfile [`#109`](https://github.com/yorukot/superfile/issues/109)
|
||||
|
3
go.mod
3
go.mod
@ -5,7 +5,6 @@ go 1.22.2
|
||||
require (
|
||||
github.com/adrg/xdg v0.4.0
|
||||
github.com/alecthomas/chroma v0.10.0
|
||||
github.com/alecthomas/chroma/v2 v2.13.0
|
||||
github.com/atotto/clipboard v0.1.4
|
||||
github.com/barasher/go-exiftool v1.10.0
|
||||
github.com/charmbracelet/bubbles v0.18.0
|
||||
@ -20,6 +19,8 @@ require (
|
||||
golift.io/xtractr v0.2.2
|
||||
)
|
||||
|
||||
require github.com/alecthomas/chroma/v2 v2.13.0 // indirect
|
||||
|
||||
require (
|
||||
github.com/andybalholm/brotli v1.0.5 // indirect
|
||||
github.com/bodgit/plumbing v1.3.0 // indirect
|
||||
|
2
main.go
2
main.go
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
//go:embed src/superfileConfig/*
|
||||
//go:embed src/superfile_config/*
|
||||
content embed.FS
|
||||
)
|
||||
|
||||
|
@ -171,10 +171,7 @@ func writeConfigFile(path, data string) error {
|
||||
}
|
||||
|
||||
func CheckForUpdates() {
|
||||
type superfileConfig struct {
|
||||
AutoCheckUpdate bool `toml:"auto_check_update"`
|
||||
}
|
||||
var Config superfileConfig
|
||||
var Config internal.ConfigType
|
||||
|
||||
data, err := os.ReadFile(varibale.ConfigFilea)
|
||||
if err != nil {
|
||||
|
@ -130,19 +130,19 @@ func loadThemeFile() {
|
||||
|
||||
func LoadAllDefaultConfig(content embed.FS) {
|
||||
|
||||
temp, err := content.ReadFile("src/superfileConfig/hotkeys.toml")
|
||||
temp, err := content.ReadFile("src/superfile_config/hotkeys.toml")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
HotkeysTomlString = string(temp)
|
||||
|
||||
temp, err = content.ReadFile("src/superfileConfig/config.toml")
|
||||
temp, err = content.ReadFile("src/superfile_config/config.toml")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
ConfigTomlString = string(temp)
|
||||
|
||||
temp, err = content.ReadFile("src/superfileConfig/theme/catppuccin.toml")
|
||||
temp, err = content.ReadFile("src/superfile_config/theme/catppuccin.toml")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
@ -167,7 +167,7 @@ func LoadAllDefaultConfig(content embed.FS) {
|
||||
return
|
||||
}
|
||||
|
||||
files, err := content.ReadDir("src/superfileConfig/theme")
|
||||
files, err := content.ReadDir("src/superfile_config/theme")
|
||||
if err != nil {
|
||||
outPutLog("error read theme directory from embed", err)
|
||||
return
|
||||
@ -177,7 +177,7 @@ func LoadAllDefaultConfig(content embed.FS) {
|
||||
if file.IsDir() {
|
||||
continue
|
||||
}
|
||||
src, err := content.ReadFile(filepath.Join("src/superfileConfig/theme", file.Name()))
|
||||
src, err := content.ReadFile(filepath.Join("src/superfile_config/theme", file.Name()))
|
||||
if err != nil {
|
||||
outPutLog("error read theme file from embed", err)
|
||||
return
|
||||
|
@ -26,8 +26,8 @@ superfile default hotkeys design concept:
|
||||
- All hotkeys that will change to files use `qctrl+key` (As long as you don't press ctrl your files will always be safe).
|
||||
- Non-control file classes use the first letters of words as hotkeys.
|
||||
|
||||
<CodeBlock file="src/superfileConfig/hotkeys.toml" />
|
||||
<CodeBlock file="src/superfile_config/hotkeys.toml" />
|
||||
|
||||
### Vim like superfile hotkeys
|
||||
|
||||
<CodeBlock file="src/superfileConfig/vimHotkeys.toml" />
|
||||
<CodeBlock file="src/superfile_config/vimHotkeys.toml" />
|
@ -39,4 +39,4 @@ Don't forget to change the `theme` variable in `config.toml` to your theme name.
|
||||
|
||||
### Default theme
|
||||
|
||||
<CodeBlock file="src/superfileConfig/theme/catppuccin.toml" />
|
||||
<CodeBlock file="src/superfile_config/theme/catppuccin.toml" />
|
@ -85,5 +85,5 @@ border_middle_right = "┤"
|
||||
|
||||
### Default superfile config
|
||||
|
||||
<CodeBlock file="src/superfileConfig/config.toml" />
|
||||
<CodeBlock file="src/superfile_config/config.toml" />
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user