batchedit

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package batchedit implements a full-screen bubbletea TUI for bulk-editing multiple tasks at once. Left panel shows a multi-select task list; right panel shows an edit form. Enter applies changes to all selected tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	TaskID    int
	TaskTitle string
	Field     string
	OldValue  string
	NewValue  string
}

Change describes a field-level change applied to a single task.

type Model

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

Model is the bubbletea model for the batch-edit TUI.

func New

func New(tasks []*pm.Task) Model

New creates a new batch-edit model for the given plan tasks.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (Model) Update

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

Update implements tea.Model.

func (Model) View

func (m Model) View() string

View implements tea.Model.

type Result

type Result struct {
	Saved   bool
	Changes []Change // one entry per modified task
}

Result is returned after the TUI exits.

func Run

func Run(tasks []*pm.Task) (Result, error)

Run launches the bubbletea TUI and returns the result.

Jump to

Keyboard shortcuts

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