clipboard

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditorInterface

type EditorInterface interface {
	GetBuffer() buffer.Buffer // Changed return type to concrete buffer.Buffer
	GetCursor() types.Position
	SetCursor(pos types.Position)
	GetSelection() (start types.Position, end types.Position, ok bool)
	ClearSelection()
	GetEventManager() *event.Manager
	ScrollToCursor()
	MoveCursor(deltaLine, deltaCol int)
	GetHistoryManager() *history.Manager // Add GetHistoryManager method
}

EditorInterface defines methods needed from editor

type Manager

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

Manager handles clipboard operations

func NewManager

func NewManager(editor EditorInterface, useSystem bool) *Manager

NewManager creates a new clipboard manager, accepting the config flag

func (*Manager) Paste

func (m *Manager) Paste() (bool, error)

Paste inserts clipboard content at cursor

func (*Manager) YankSelection

func (m *Manager) YankSelection() (bool, error)

YankSelection copies selected text to clipboard

Jump to

Keyboard shortcuts

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