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) YankSelection ¶
YankSelection copies selected text to clipboard
Click to show internal directories.
Click to hide internal directories.