Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HotkeysTomlString string ConfigTomlString string DefaultThemeString string )
View Source
var LastTimeCursorMove = [2]int{int(time.Now().UnixMicro()), 0}
View Source
var ListeningMessage = true
Functions ¶
func InitialModel ¶
func LoadAllDefaultConfig ¶
func LoadThemeConfig ¶
func LoadThemeConfig()
Types ¶
type ConfigType ¶
type ConfigType struct {
Theme string `toml:"theme" comment:"change your theme"`
AutoCheckUpdate bool `toml:"auto_check_update" comment:"\nAuto check for update"`
CdOnQuit bool `` /* 146-byte string literal not displayed */
DefaultOpenFilePreview bool `toml:"default_open_file_preview" comment:"\nWhether to open file preview automatically every time superfile is opened."`
TransparentBackground bool `` /* 183-byte string literal not displayed */
FilePreviewWidth int `` /* 227-byte string literal not displayed */
SidebarWidth int `` /* 199-byte string literal not displayed */
BorderTop string `toml:"border_top" comment:"\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"`
ToggleFilePreviewPanel []string `toml:"toggle_file_preview_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:"open_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 {
// Code syntax highlight theme
CodeSyntaxHighlightTheme string `toml:"code_syntax_highlight"`
// Border
FilePanelBorder string `toml:"file_panel_border"`
SidebarBorder string `toml:"sidebar_border"`
// Border Active
FilePanelBorderActive string `toml:"file_panel_border_active"`
SidebarBorderActive string `toml:"sidebar_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"`
ModalBG string `toml:"modal_bg"`
// Foreground (fg)
FullScreenFG string `toml:"full_screen_fg"`
FilePanelFG string `toml:"file_panel_fg"`
SidebarFG string `toml:"sidebar_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
Source Files
¶
- config_function.go
- config_type.go
- default_config.go
- file_operations.go
- file_operations_compress.go
- file_operations_extract.go
- function.go
- get_data.go
- handle_file_operations.go
- handle_genernal.go
- handle_modal.go
- handle_panel_movement.go
- handle_panel_navigation.go
- icon.go
- key_function.go
- model.go
- model_render.go
- string_function.go
- style.go
- style_function.go
- type.go
- wheel_function.go
Click to show internal directories.
Click to hide internal directories.