bookmarks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package bookmarks implements the bookmarks overlay panel for grut. It displays a navigable list of saved directory bookmarks and allows the user to jump to a bookmark or delete entries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Panel

type Panel struct {
	panels.BasePanel
	// contains filtered or unexported fields
}

Panel is the bookmarks overlay. It implements panels.Panel.

func New

func New(manager *bm.Manager) *Panel

New creates a new bookmarks overlay panel backed by the given manager.

func (*Panel) Init

func (p *Panel) Init(_ context.Context) tea.Cmd

Init implements panels.Panel.

func (*Panel) KeyBindings

func (p *Panel) KeyBindings() []panels.KeyBinding

KeyBindings implements panels.Panel.

func (*Panel) Refresh

func (p *Panel) Refresh()

Refresh reloads the bookmark list from the manager.

func (*Panel) SetActionsCfg

func (p *Panel) SetActionsCfg(cfg config.ActionsConfig)

SetActionsCfg injects the actions configuration for right-click menus.

func (*Panel) Update

func (p *Panel) Update(msg tea.Msg) (panels.Panel, tea.Cmd)

Update implements panels.Panel.

func (*Panel) View

func (p *Panel) View(width, height int) string

View implements panels.Panel.

Jump to

Keyboard shortcuts

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