filepopup

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(path string, value string, n *filetree.Node)

func Delete

func Delete(path string, value string)

func GetPath

func GetPath(n *filetree.Node) string

func GetText

func GetText(typ enums.PopupType, ti textinput.Model) string

func HandleEnter

func HandleEnter(m *FilePopup) (tea.Model, tea.Cmd)

func MapExpanded

func MapExpanded(new *filetree.Node, old *filetree.Node)

func Move

func Move(path string, value string)

func Rename

func Rename(path string, value string)

Types

type FilePopup

type FilePopup struct {
	Height    int
	Width     int
	Type      enums.PopupType
	TextInput textinput.Model
	Node      *filetree.Node
}

func NewPopup

func NewPopup(typ enums.PopupType, node *filetree.Node) *FilePopup

func (FilePopup) Init

func (m FilePopup) Init() tea.Cmd

func (*FilePopup) Update

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

func (*FilePopup) View

func (m *FilePopup) View() string

Jump to

Keyboard shortcuts

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