blockselect

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Styles = struct {
	Box                  lipgloss.Style
	SelectedBlock        lipgloss.Style
	CurrentBlock         lipgloss.Style
	searchUnmatchedBlock lipgloss.Style
	searchMatchedBlock   lipgloss.Style
}{
	Box:           lipgloss.NewStyle().Border(lipgloss.NormalBorder(), true),
	SelectedBlock: lipgloss.NewStyle().Foreground(lipgloss.Color("12")).Bold(true),
	CurrentBlock:  lipgloss.NewStyle().Foreground(lipgloss.Color("12")).Bold(true),
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type BlockChangedMsg added in v1.1.1

type BlockChangedMsg uint64

type BlockSelect

type BlockSelect struct {
	common.Common

	BlocksWithData []uint64
	// contains filtered or unexported fields
}

func New

func New(c common.Common) *BlockSelect

func (*BlockSelect) Init

func (b *BlockSelect) Init() tea.Cmd

func (*BlockSelect) SetActiveBlock

func (b *BlockSelect) SetActiveBlock(blockNum uint64)

func (*BlockSelect) SetAvailableBlocks

func (b *BlockSelect) SetAvailableBlocks(blocks []uint64)

func (*BlockSelect) StretchBounds

func (b *BlockSelect) StretchBounds(low, high uint64)

func (*BlockSelect) Update

func (b *BlockSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*BlockSelect) View

func (b *BlockSelect) View() string

type JumpToBlockMsg added in v1.1.1

type JumpToBlockMsg uint64

Jump to

Keyboard shortcuts

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