Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepoConfigPath ¶
func RepoConfigPath() string
RepoConfigPath returns the path to the repository config file
func UserConfigPath ¶
func UserConfigPath() string
UserConfigPath returns the path to the user config file
Types ¶
type Config ¶
type Config struct {
Theme string `yaml:"theme"`
LineNumbers bool `yaml:"line_numbers"`
ContextMode string `yaml:"context_mode"` // "focus" or "full"
DiffMode string `yaml:"diff_mode"` // "all", "staged", "unstaged"
CompareBranch string `yaml:"compare_branch"` // Default branch for comparison (empty = no default)
KeyBindings KeyBindings `yaml:"key_bindings,omitempty"`
}
Config represents the user configuration
type KeyBindings ¶
type KeyBindings struct {
Search string `yaml:"search"`
NextFile string `yaml:"next_file"`
PrevFile string `yaml:"prev_file"`
ToggleLineNumbers string `yaml:"toggle_line_numbers"`
ToggleContext string `yaml:"toggle_context"`
Quit string `yaml:"quit"`
}
KeyBindings defines custom key bindings
func DefaultKeyBindings ¶
func DefaultKeyBindings() KeyBindings
DefaultKeyBindings returns the default key bindings
Click to show internal directories.
Click to hide internal directories.