tree

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Path     string
	Name     string
	IsDir    bool
	ModTime  time.Time
	Type     ItemType
	Metadata map[string]interface{} // For type-specific data like Title, Tags, Status, etc.

	// Hierarchy
	Parent   *Item
	Children []*Item
}

Item represents a single node in the notebook's file tree. It can be a file or a directory.

type ItemType

type ItemType string

ItemType categorizes the different kinds of items in the notebook tree.

const (
	TypeNote      ItemType = "note"
	TypePlan      ItemType = "plan"      // A plan *directory*
	TypeArtifact  ItemType = "artifact"  // A generated file, e.g., briefing.xml
	TypeGeneric   ItemType = "generic"   // A generic file, e.g., notes.txt
	TypeWorkspace ItemType = "workspace" // A workspace root directory
	TypeGroup     ItemType = "group"     // A generic grouping directory, e.g., 'inbox', 'meetings'
)

Jump to

Keyboard shortcuts

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