models

package
v0.0.0-...-5d990f6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(m *Model, dir *string) bool

func GetWidth

func GetWidth() uint

func LoadBookmarks

func LoadBookmarks(m *Model)

func LoadDirs

func LoadDirs(m *Model)
func Logo() string

func UpdateHistory

func UpdateHistory(m *Model, dir string)

Types

type Bookmark

type Bookmark string

type Dir

type Dir struct {
	Dir       string `yaml:"dir"`
	Timestamp int64  `yaml:"timestamp"`
	Opened    int    `yaml:"opened"`
}

type Model

type Model struct {
	Bookmarks []Bookmark  `yaml:"bookmarks"`
	Dirs      []Dir       `yaml:"dirs"`
	BTable    table.Model `yaml:"-"`
	DTable    table.Model `yaml:"-"`
	Toggle    bool        `yaml:"-"`
	IsSearch  bool        `yaml:"-"`
	SearchStr string      `yaml:"-"`
	STable    table.Model `yaml:"-"`
	ConfigStr string      `yaml:"-"`
}

func (Model) GetSearchStr

func (m Model) GetSearchStr() string

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