cmd

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	GitCommit = "unknown"
	BuildDate = "unknown"
)

Version information - these can be set during build with ldflags

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

func OpenEditorAtLine

func OpenEditorAtLine(path string, line int) error

OpenEditorAtLine opens the user's preferred editor at a specific line number.

func OpenFileWithDefaultApp

func OpenFileWithDefaultApp(path string) error

OpenFileWithDefaultApp opens a file using the OS default application. It handles macOS (open), Windows (start), and Linux (xdg-open).

func TryResolveAlias added in v0.1.7

func TryResolveAlias(cfg *config.Config, cmdName string, args []string) ([]string, bool)

TryResolveAlias attempts to resolve a command as an alias Returns the expanded command parts and true if it was an alias, or nil and false if not

Types

type AssetSearchResult added in v0.1.3

type AssetSearchResult struct {
	Filename    string
	Description string
	UsedIn      []string // Slugs of notes using this asset
	Path        string
	ModTime     time.Time
}

AssetSearchResult represents a unified result for display

type ExportProfile

type ExportProfile struct {
	Extension      string
	PandocArgs     []string
	AddFrontmatter bool
}

ExportProfile defines how to handle different output formats

type InteractiveGraphView

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

InteractiveGraphView provides a terminal-based interactive graph explorer

func NewInteractiveGraphView

func NewInteractiveGraphView(index *domain.Index, startSlug string) (*InteractiveGraphView, error)

NewInteractiveGraphView creates a new interactive graph viewer

func (*InteractiveGraphView) Run

func (v *InteractiveGraphView) Run() error

Run starts the interactive viewer

type TodoItem

type TodoItem struct {
	ID       int
	Text     string
	Filename string
	LineNum  int
	Original string
	IsLatex  bool
}

TodoItem represents a task found in a file

Jump to

Keyboard shortcuts

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