config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeTheme added in v0.3.0

func ChangeTheme(themeName string) string

func CreateSpace added in v0.3.0

func CreateSpace()

func FixConfig added in v0.2.0

func FixConfig()

func GetSpacePath added in v0.3.0

func GetSpacePath() string

func InitConfig

func InitConfig()

func InitTheme added in v0.2.0

func InitTheme(themeName string) error

func Save added in v0.2.0

func Save()

saving current configuration

Types

type Code added in v0.2.0

type Code struct {
	Background string `json:"background"`
	Keyword    string `json:"keyword"`
	Bracket    string `json:"bracket"`
	Comment    string `json:"comment"`
	String     string `json:"string"`
	Number     string `json:"number"`
	Symbol     string `json:"symbol"`
}

type Config

type Config struct {
	ThemeName  string `json:"theme_name,omitempty"`
	ResizeTime int    `json:"resize_time_duration,omitempty"`
	TabStop    int    `json:"tab_stop,omitempty"`
	RLN        bool   `json:"relative_line_numbers,omitempty"`
	ShowEmpty  bool   `json:"show_empty_line_symbol,omitempty"`
	ShowMD     bool   `json:"show_markdown_symbols,omitempty"`
	Render     bool   `json:"enable_render,omitempty"`
	TabNames   bool   `json:"show_tab_names,omitempty"`
	KeepTabs   bool   `json:"keep_tabs,omitempty"`
	ShowIcons  bool   `json:"show_icons,omitempty"`
	ShowBorder bool   `json:"show_borders,omitempty"`
	ShowDot    bool   `json:"show_dot_files,omitempty"`
}

func GetConfig added in v0.3.0

func GetConfig() *Config

func (*Config) DefaultThemeName added in v0.2.0

func (c *Config) DefaultThemeName() string

type General added in v0.2.0

type General struct {
	SelectedTile string `json:"selected_tile"`
	CurrentLine  string `json:"current_line"`
	LineNumber   string `json:"line_number"`
	BottomBar    string `json:"bottom_bar"`
	EmptyLine    string `json:"empty_line"`
	Selection    string `json:"selection"`
	Command      string `json:"command"`
	Message      string `json:"message"`
	Error        string `json:"error"`
	Tab          string `json:"tab"`
}

type Markdown added in v0.2.0

type Markdown struct {
	NumberList string `json:"number_list"`
	Highlight  string `json:"highlight"`
	CodeLineBg string `json:"code_line_bg"`
	CodeHeader string `json:"code_header"`
	HTMLSymbol string `json:"html_tag_symbol"`
	HTMLText   string `json:"html_tag_text"`
	CodeText   string `json:"code_text"`
	Header1    string `json:"header_1"`
	Header2    string `json:"header_2"`
	Header3    string `json:"header_3"`
	Header4    string `json:"header_4"`
	Header5    string `json:"header_5"`
	Header6    string `json:"header_6"`
	Symbol     string `json:"symbol"`
	Quote      string `json:"quote"`
	Image      string `json:"image"`
	Link       string `json:"link"`
	Tag        string `json:"tag"`
}

type Theme added in v0.2.0

type Theme struct {
	General  General  `json:"general"`
	Markdown Markdown `json:"markdown"`
	Code     Code     `json:"code"`
}

func GetTheme added in v0.3.0

func GetTheme() *Theme

Jump to

Keyboard shortcuts

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