browser

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: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	keymap.Base
	FocusEcosystem   key.Binding
	ClearFocus       key.Binding
	FocusParent      key.Binding
	FocusSelected    key.Binding
	ToggleView       key.Binding
	Search           key.Binding
	FilterByTag      key.Binding
	ToggleGitChanges key.Binding
	Sort             key.Binding
	JumpToWorkspace  key.Binding
	PageUp           key.Binding
	PageDown         key.Binding
	GoToTop          key.Binding
	GoToBottom       key.Binding
	Fold             key.Binding
	Unfold           key.Binding
	FoldPrefix       key.Binding // z key for fold commands
	ToggleArchives   key.Binding
	ToggleArtifacts  key.Binding
	ToggleGlobal     key.Binding
	ToggleHold       key.Binding
	ToggleSelect     key.Binding
	SelectNone       key.Binding
	Archive          key.Binding
	Preview          key.Binding
	TogglePreview    key.Binding
	Grep             key.Binding
	ToggleColumns    key.Binding
	Refresh          key.Binding
	Sync             key.Binding
	Cut              key.Binding
	Copy             key.Binding
	Yank             key.Binding
	Paste            key.Binding
	Delete           key.Binding
	CreateNote       key.Binding
	CreateNoteInbox  key.Binding
	CreateNoteGlobal key.Binding
	Rename           key.Binding
	CreatePlan       key.Binding
	FocusRecent      key.Binding
	GitCommit        key.Binding
	GitStageToggle   key.Binding
	GitStageAll      key.Binding
	GitUnstageAll    key.Binding
}

KeyMap defines the keybindings for the browser TUI

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

type Model

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

Model is the main model for the notebook browser TUI

func New

func New(svc *service.Service, initialFocus *workspace.WorkspaceNode, ctx *service.WorkspaceContext) Model

New creates a new TUI model.

func (Model) FileToEdit

func (m Model) FileToEdit() string

FileToEdit returns the file path that should be edited (for Neovim integration)

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the TUI.

func (Model) Update

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

func (Model) View

func (m Model) View() string

Directories

Path Synopsis
components

Jump to

Keyboard shortcuts

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