package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Mar 18, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Action is the editor-level result of handling a key.
const (
ActionNone Action = iota
ActionConfirm
ActionCancel
)
Mode is the rename editor modal state.
const (
ModeNormal Mode = iota
ModeInsert
ModeVisual
)
Model is a Vim-style single-line editor for rename prompts.
Cursor is stored as a caret position [0..len(buf)].
New creates a rename editor in NORMAL mode initialized with a filename.
Mode returns the current editor mode.
ModeLabel returns a user-facing uppercase mode label.
Update handles one key event and returns the resulting action.
Value returns the current edited filename.
View renders the editable filename value with cursor/selection styling.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.