internal

package
v1.1.3-0...-eaed782 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigTomlString string = `` /* 746-byte string literal not displayed */
View Source
var DefaultTheme string = `` /* 1652-byte string literal not displayed */
View Source
var HomeDir = xdg.Home
View Source
var HotkeysTomlString string = `` /* 2239-byte string literal not displayed */
View Source
var LastTimeCursorMove = [2]int{int(time.Now().UnixMicro()), 0}
View Source
var ListeningMessage = true
View Source
var SuperFileDataDir = xdg.DataHome + "/superfile"
View Source
var SuperFileMainDir = xdg.ConfigHome + "/superfile"
View Source
var SuperFileStateDir = xdg.StateHome + "/superfile"

Functions

func InitialModel

func InitialModel(dir string, firstUseCheck bool) model

func LoadThemeConfig

func LoadThemeConfig()

func PlaceOverlay

func PlaceOverlay(x, y int, fg, bg string, opts ...WhitespaceOption) string

PlaceOverlay places fg on top of bg.

Types

type ConfigType

type ConfigType struct {
	Theme string `toml:"theme" comment:"change your theme"`

	FooterPanelList []string `toml:"footer_panel_list" comment:"\nuseless for now"`
	AutoCheckUpdate bool     `toml:"auto_check_update" comment:"\nAuto check for update"`

	TransparentBackground bool `` /* 183-byte string literal not displayed */

	BorderTop         string `toml:"border_top" comment:"\n\nBorder style"`
	BorderBottom      string `toml:"border_bottom"`
	BorderLeft        string `toml:"border_left"`
	BorderRight       string `toml:"border_right"`
	BorderTopLeft     string `toml:"border_top_left"`
	BorderTopRight    string `toml:"border_top_right"`
	BorderBottomLeft  string `toml:"border_bottom_left"`
	BorderBottomRight string `toml:"border_bottom_right"`
	BorderMiddleLeft  string `toml:"border_middle_left"`
	BorderMiddleRight string `toml:"border_middle_right"`

	Metadata bool `` /* 142-byte string literal not displayed */
}

Configuration settings

var Config ConfigType

type HotkeysType

type HotkeysType struct {
	Confirm []string `` /* 189-byte string literal not displayed */
	Quit    []string `toml:"quit"`
	// movement
	ListUp   []string `toml:"list_up" comment:"movement"`
	ListDown []string `toml:"list_down"`

	CloseFilePanel     []string `toml:"close_file_panel" comment:"file panel control"`
	CreateNewFilePanel []string `toml:"create_new_file_panel"`
	NextFilePanel      []string `toml:"next_file_panel"`
	PreviousFilePanel  []string `toml:"previous_file_panel"`

	FocusOnProcessBar []string `toml:"focus_on_process_bar" comment:"change focus"`
	FocusOnSidebar    []string `toml:"focus_on_sidebar"`
	FocusOnMetaData   []string `toml:"focus_on_metadata"`

	FilePanelItemCreate []string `toml:"file_panel_item_create" comment:"create file/directory and rename "`
	FilePanelItemRename []string `toml:"file_panel_item_rename"`

	CopyItems   []string `toml:"copy_items" comment:"file operate"`
	PasteItems  []string `toml:"paste_items"`
	CutItems    []string `toml:"cut_items"`
	DeleteItems []string `toml:"delete_items"`

	ExtractFile  []string `toml:"extract_file" comment:"compress and extract"`
	CompressFile []string `toml:"compress_file"`

	OpenFileWithEditor             []string `toml:"oepn_file_with_editor" comment:"editor"`
	OpenCurrentDirectoryWithEditor []string `toml:"open_current_directory_with_editor"`

	PinnedDirectory []string `toml:"pinned_directory" comment:"else"`
	ToggleDotFile   []string `toml:"toggle_dot_file"`
	ChangePanelMode []string `toml:"change_panel_mode"`
	OpenHelpMenu    []string `toml:"open_help_menu"`

	ConfirmTyping []string `` /* 182-byte string literal not displayed */
	CancelTyping  []string `toml:"cancel_typing"`

	ParentDirectory []string `` /* 230-byte string literal not displayed */
	SearchBar       []string `toml:"search_bar"`

	FilePanelSelectModeItemsSelectDown []string `` /* 254-byte string literal not displayed */
	FilePanelSelectModeItemsSelectUp   []string `toml:"file_panel_select_mode_items_select_up"`
	FilePanelSelectAllItem             []string `toml:"file_panel_select_all_items"`
}

type ThemeType

type ThemeType struct {
	// Border
	FilePanelBorder string `toml:"file_panel_border"`
	SidebarBorder   string `toml:"sidebar_border"`
	FooterBorder    string `toml:"footer_border"`

	// Border Active
	FilePanelBorderActive string `toml:"file_panel_border_active"`
	SidebarBorderActive   string `toml:"sidebar_border_active"`
	FooterBorderActive    string `toml:"footer_border_active"`
	ModalBorderActive     string `toml:"modal_border_active"`

	// Background (bg)
	FullScreenBG string `toml:"full_screen_bg"`
	FilePanelBG  string `toml:"file_panel_bg"`
	SidebarBG    string `toml:"sidebar_bg"`
	FooterBG     string `toml:"footer_bg"`
	ModalBG      string `toml:"modal_bg"`

	// Foreground (fg)
	FullScreenFG string `toml:"full_screen_fg"`
	FilePanelFG  string `toml:"file_panel_fg"`
	SidebarFG    string `toml:"sidebar_fg"`
	FooterFG     string `toml:"footer_fg"`
	ModalFG      string `toml:"modal_fg"`

	// Special Color
	Cursor        string   `toml:"cursor"`
	Correct       string   `toml:"correct"`
	Error         string   `toml:"error"`
	Hint          string   `toml:"hint"`
	Cancel        string   `toml:"cancel"`
	GradientColor []string `toml:"gradient_color"`

	// File Panel Special Items
	FilePanelTopDirectoryIcon string `toml:"file_panel_top_directory_icon"`
	FilePanelTopPath          string `toml:"file_panel_top_path"`
	FilePanelItemSelectedFG   string `toml:"file_panel_item_selected_fg"`
	FilePanelItemSelectedBG   string `toml:"file_panel_item_selected_bg"`

	// Sidebar Special Items
	SidebarTitle          string `toml:"sidebar_title"`
	SidebarItemSelectedFG string `toml:"sidebar_item_selected_fg"`
	SidebarItemSelectedBG string `toml:"sidebar_item_selected_bg"`
	SidebarDivider        string `toml:"sidebar_divider"`

	// Modal Special Items
	ModalCancelFG  string `toml:"modal_cancel_fg"`
	ModalCancelBG  string `toml:"modal_cancel_bg"`
	ModalConfirmFG string `toml:"modal_confirm_fg"`
	ModalConfirmBG string `toml:"modal_confirm_bg"`

	HelpMenuHotkey string `toml:"help_menu_hotkey"`
	HelpMenuTitle  string `toml:"help_menu_title"`
}

Theme configuration

type WhitespaceOption

type WhitespaceOption func(*whitespace)

Jump to

Keyboard shortcuts

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