notebook

package
v0.0.0-...-82cd931 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterFunc

type FilterFunc func(note parser.Note) bool

type Notebook

type Notebook struct {
	Filters []FilterFunc
	Invalid map[uint64]parser.Note
	Notes   *graph.Graph
	// contains filtered or unexported fields
}

func New

func New() *Notebook

func (*Notebook) AddFilter

func (book *Notebook) AddFilter(filter FilterFunc)

func (*Notebook) Count

func (book *Notebook) Count() int

func (*Notebook) IsNote

func (book *Notebook) IsNote(noteId uint64) bool

func (*Notebook) LinkCount

func (book *Notebook) LinkCount() int

func (*Notebook) Load

func (book *Notebook) Load(dir string) error

func (*Notebook) MatchedTags

func (book *Notebook) MatchedTags(searchTags ...string) []matchedTag

func (*Notebook) Read

func (book *Notebook) Read() []parser.Note

func (*Notebook) Search

func (book *Notebook) Search(query ...string) []Result

func (*Notebook) SearchByTags

func (book *Notebook) SearchByTags(searchTags ...string) []Result

func (*Notebook) SearchRelated

func (book *Notebook) SearchRelated(id uint64) []Result

func (*Notebook) TagConnections

func (book *Notebook) TagConnections(search string) []TagConnection

func (*Notebook) TagIntersection

func (book *Notebook) TagIntersection(matchedTags []matchedTag) []graph.Vertex

func (*Notebook) Tags

func (book *Notebook) Tags(search string) []string

type Result

type Result struct {
	Context string
	Line    int
	Value   interface{}
}

type TagConnection

type TagConnection struct {
	Tag         string
	Connections int
}

Jump to

Keyboard shortcuts

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