files

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 23 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

View Source
var (
	ErrInvalidPickerStart = errors.New("invalid picker start position")
)

Functions

func BufferModule

func BufferModule() command.Module

BufferModule returns the buffer navigation and close commands

func DiagnosticsModule

func DiagnosticsModule(model ui.Model) command.Module

DiagnosticsModule returns diagnostic and workspace search picker commands separately from PickerModule, allowing independent placement in the space-leader menu

func DirectoryModule

func DirectoryModule() command.Module

DirectoryModule returns the working-directory commands

func FileModule

func FileModule() command.Module

FileModule returns the file open, write, and manage commands

func FormatModule

func FormatModule() command.Module

FormatModule returns the document and selection format commands

func LspModule

func LspModule(model ui.Model) command.Module

LspModule returns the language-server navigation and action commands

func NewBufferPicker

func NewBufferPicker(e *view.Editor, opts BufferPickerOptions) *ui.Picker

NewBufferPicker returns a picker over the open buffers

func NewDiagnosticPicker

func NewDiagnosticPicker(e *view.Editor) *ui.Picker

NewDiagnosticPicker lists diagnostics for the focused document

func NewFileExplorer

func NewFileExplorer(e *view.Editor, opts FileExplorerOptions) *ui.Picker

NewFileExplorer opens a file explorer rooted at the editor's working directory

func NewFilePicker

func NewFilePicker(e *view.Editor) *ui.Picker

NewFilePicker opens a file picker rooted at the workspace directory

func NewFilePickerInCWD

func NewFilePickerInCWD(e *view.Editor) *ui.Picker

NewFilePickerInCWD opens a file picker rooted at the current working directory

func NewFilePickerInDir

func NewFilePickerInDir(dir string) ui.PickerFunc

NewFilePickerInDir opens a file picker rooted at the given directory

func NewFocusedPaneDirExplorer

func NewFocusedPaneDirExplorer(e *view.Editor, opts FileExplorerOptions) *ui.Picker

NewFocusedPaneDirExplorer opens a file explorer rooted at the focused pane's path directory, falling back to the working directory

func NewGlobalSearchPicker

func NewGlobalSearchPicker(e *view.Editor) *ui.Picker

NewGlobalSearchPicker opens a picker searching workspace file contents as the query is typed

func NewWorkspaceDiagnosticPicker

func NewWorkspaceDiagnosticPicker(e *view.Editor) *ui.Picker

NewWorkspaceDiagnosticPicker lists diagnostics for all open documents

func PickerModule

func PickerModule(model ui.Model) command.Module

PickerModule returns the file, buffer, and explorer picker commands

func SessionModule

func SessionModule(r *command.Registry) command.Module

SessionModule provides explicit commands for saving and restoring sessions with the registry's current runtime options

Types

type BufferPickerOptions

type BufferPickerOptions struct {
	StartPosition PickerStartPosition `toml:"start-position"`
}

BufferPickerOptions is the buffer picker's own configuration

type FileExplorerOptions

type FileExplorerOptions struct {
	Hidden         bool
	FollowSymlinks bool
	Parents        bool
	IgnoreFiles    bool
	FlattenDirs    bool
}

FileExplorerOptions controls which entries a file explorer lists

func DefaultFileExplorerOptions

func DefaultFileExplorerOptions() FileExplorerOptions

DefaultFileExplorerOptions returns the explorer's out-of-the-box behavior

type PickerStartPosition

type PickerStartPosition string

PickerStartPosition is where the cursor lands when a picker opens

const (
	PickerStartTop      PickerStartPosition = "top"
	PickerStartPrevious PickerStartPosition = "previous"
)

func (*PickerStartPosition) UnmarshalText

func (p *PickerStartPosition) UnmarshalText(text []byte) error

UnmarshalText parses which entry the picker starts on

Jump to

Keyboard shortcuts

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