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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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