Documentation
¶
Index ¶
Constants ¶
View Source
const ( CurrentVersion = "v1.3.3" LatestVersionURL = "https://api.github.com/repos/fsncps/hyperfile/releases/latest" LatestVersionGithub = "github.com/fsncps/hyperfile/releases/latest" // This will not break in windows. This is a relative path for Embed FS. It uses "/" only EmbedConfigDir = "src/hyperfile_config" EmbedConfigFile = EmbedConfigDir + "/config.toml" EmbedHotkeysFile = EmbedConfigDir + "/hotkeys.toml" EmbedThemeDir = EmbedConfigDir + "/theme" EmbedThemeCatppuccinFile = EmbedThemeDir + "/catppuccin.toml" )
Variables ¶
View Source
var ( HomeDir = xdg.Home HyperFileMainDir = filepath.Join(xdg.ConfigHome, "hyperfile") HyperFileCacheDir = filepath.Join(xdg.CacheHome, "hyperfile") HyperFileDataDir = filepath.Join(xdg.DataHome, "hyperfile") HyperFileStateDir = filepath.Join(xdg.StateHome, "hyperfile") // MainDir files ThemeFolder = filepath.Join(HyperFileMainDir, "theme") // DataDir files LastCheckVersion = filepath.Join(HyperFileDataDir, "lastCheckVersion") ThemeFileVersion = filepath.Join(HyperFileDataDir, "themeFileVersion") FirstUseCheck = filepath.Join(HyperFileDataDir, "firstUseCheck") PinnedFile = filepath.Join(HyperFileDataDir, "pinned.json") ToggleDotFile = filepath.Join(HyperFileDataDir, "toggleDotFile") // StateDir files LogFile = filepath.Join(HyperFileStateDir, "hyperfile.log") LastDirFile = filepath.Join(HyperFileStateDir, "lastdir") // Trash Directories DarwinTrashDirectory = filepath.Join(HomeDir, ".Trash") CustomTrashDirectory = filepath.Join(xdg.DataHome, "Trash") CustomTrashDirectoryFiles = filepath.Join(xdg.DataHome, "Trash", "files") CustomTrashDirectoryInfo = filepath.Join(xdg.DataHome, "Trash", "info") )
View Source
var ( ConfigFile = filepath.Join(HyperFileMainDir, "config.toml") HotkeysFile = filepath.Join(HyperFileMainDir, "hotkeys.toml") // ChooserFile is the path where hyperfile will write the file's path, which is to be // opened, before exiting ChooserFile = "" // Other state variables FixHotkeys = false FixConfigFile = false LastDir = "" PrintLastDir = false )
These variables are actually not fixed, they are sometimes updated dynamically
Functions ¶
func SetChooserFile ¶
func SetChooserFile(path string)
func SetLastDir ¶
func SetLastDir(path string)
func UpdateVarFromCliArgs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.