Documentation
¶
Index ¶
Constants ¶
View Source
const ( CurrentVersion string = "v1.2.1" LatestVersionURL string = "https://api.github.com/repos/yorukot/superfile/releases/latest" LatestVersionGithub string = "github.com/yorukot/superfile/releases/latest" // This will not break in windows. This is a relative path for Embed FS. It uses "/" only EmbedConfigDir string = "src/superfile_config" EmbedConfigFile string = EmbedConfigDir + "/config.toml" EmbedHotkeysFile string = EmbedConfigDir + "/hotkeys.toml" EmbedThemeDir string = EmbedConfigDir + "/theme" EmbedThemeCatppuccinFile string = EmbedThemeDir + "/catppuccin.toml" )
Variables ¶
View Source
var ( HomeDir string = xdg.Home SuperFileMainDir string = filepath.Join(xdg.ConfigHome, "superfile") SuperFileCacheDir string = filepath.Join(xdg.CacheHome, "superfile") SuperFileDataDir string = filepath.Join(xdg.DataHome, "superfile") SuperFileStateDir string = filepath.Join(xdg.StateHome, "superfile") // MainDir files ThemeFolder string = filepath.Join(SuperFileMainDir, "theme") ConfigFile string = filepath.Join(SuperFileMainDir, "config.toml") HotkeysFile string = filepath.Join(SuperFileMainDir, "hotkeys.toml") // DataDir files LastCheckVersion string = filepath.Join(SuperFileDataDir, "lastCheckVersion") ThemeFileVersion string = filepath.Join(SuperFileDataDir, "themeFileVersion") FirstUseCheck string = filepath.Join(SuperFileDataDir, "firstUseCheck") PinnedFile string = filepath.Join(SuperFileDataDir, "pinned.json") ToggleDotFile string = filepath.Join(SuperFileDataDir, "toggleDotFile") // StateDir files LogFile string = filepath.Join(SuperFileStateDir, "superfile.log") LastDirFile string = filepath.Join(SuperFileStateDir, "lastdir") // Trash Directories DarwinTrashDirectory string = filepath.Join(HomeDir, ".Trash") CustomTrashDirectory string = filepath.Join(xdg.DataHome, "Trash") CustomTrashDirectoryFiles string = filepath.Join(xdg.DataHome, "Trash", "files") CustomTrashDirectoryInfo string = filepath.Join(xdg.DataHome, "Trash", "info") // Other state variables FixHotkeys bool = false FixConfigFile bool = false LastDir string = "" PrintLastDir bool = false )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.