core

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditConfig

func EditConfig(scope *gap.Scope) error

Types

type Config

type Config struct {
	SaveDirectory string
	Editor        string
}

func LoadConfig

func LoadConfig(scope *gap.Scope) (config Config, err error)

func (Config) Formatted

func (c Config) Formatted() string

func (Config) GetEditor added in v0.3.0

func (c Config) GetEditor() string

func (Config) ListCategoryDirectories

func (c Config) ListCategoryDirectories() []string

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewUI

func NewUI(config Config) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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