variable

package
v0.0.0-...-5d475a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 5 Imported by: 0

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")
	ToggleFooter     = filepath.Join(HyperFileDataDir, "toggleFooter")

	// 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

func UpdateVarFromCliArgs(c *cli.Command)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL