stash

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

Documentation

Overview

Package stash implements the stash management and cherry-pick panel for grut. It provides a navigable list of stash entries with push, pop, apply, and drop operations, plus cherry-pick handling for commits received from other panels.

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 stash management panel. It lists stash entries and provides push/pop/apply/drop operations plus cherry-pick handling.

func New

func New(gc gitOps) *Panel

New creates a new stash panel with the given git client.

func (*Panel) Init

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

Init implements panels.Panel. It stores the application context and triggers an initial asynchronous load of stash entries.

func (*Panel) KeyBindings

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

KeyBindings implements panels.Panel.

func (*Panel) SetActionsCfg

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

SetActionsCfg stores the actions configuration for right-click menus.

func (*Panel) Title

func (p *Panel) Title() string

Title returns the panel title with stash entry count.

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