Documentation
¶
Overview ¶
Package visren implements visual batch renaming for F4.
Its mask language and user-facing behaviour are based on FarPlugins/VisRen 3.2.0 (BSD-3-Clause), commit a31e48d7dd154c4fde86aef593810343a1289356.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateFilename ¶
Types ¶
type Dialog ¶
func (*Dialog) ProcessKey ¶
func (d *Dialog) ProcessKey(e *vtinput.InputEvent) bool
func (*Dialog) ProcessMouse ¶
func (d *Dialog) ProcessMouse(e *vtinput.InputEvent) bool
func (*Dialog) ResizeConsole ¶
type EditorRequest ¶
type ErrorHandler ¶
type ErrorHandler func(source, destination string, err error) ErrorAction
type Item ¶
type RenamePair ¶
type RenameResult ¶
type RenameResult struct {
Succeeded []RenamePair
Pending []string
Canceled bool
}
func ExecuteRenames ¶
func ExecuteRenames(ctx context.Context, fs *vfs.OSVFS, dir string, rows []Preview, onError ErrorHandler) RenameResult
func ExecuteUndo ¶
func ExecuteUndo(ctx context.Context, fs *vfs.OSVFS, dir string, log []RenamePair, onError ErrorHandler) RenameResult
Click to show internal directories.
Click to hide internal directories.