marker

package
v0.0.0-...-0f7d4fc Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marker

type Marker interface {
	Mark(models.UID)
	Unmark(models.UID)
	ToggleMark(models.UID)
	Remark()
	Marked() []models.UID
	IsMarked(models.UID) bool
	IsVisualMark() bool
	ToggleVisualMark(bool)
	UpdateVisualMark()
	ClearVisualMark()
}

Marker provides the interface for the marking behavior of messages

func New

func New(up UIDProvider) Marker

New returns a new Marker

type UIDProvider

type UIDProvider interface {
	Uids() []models.UID
	SelectedIndex() int
}

UIDProvider provides the underlying uids and the selected message index

Jump to

Keyboard shortcuts

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