autosave

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() plugin.Plugin

New creates a new instance of the AutoSave plugin.

Types

type AutoSave

type AutoSave struct {
	// contains filtered or unexported fields
}

AutoSave plugin automatically saves modified buffers.

func (*AutoSave) Initialize

func (p *AutoSave) Initialize(api plugin.EditorAPI) error

Initialize reads configuration and starts the auto-save loop if enabled.

func (*AutoSave) Name

func (p *AutoSave) Name() string

Name returns the unique name of the plugin.

func (*AutoSave) Shutdown

func (p *AutoSave) Shutdown() error

Shutdown signals the saver goroutine to stop and waits for it.

Jump to

Keyboard shortcuts

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