browser

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResyncPhaseIdle      = resyncPhaseIdle
	ResyncPhaseAnalyzing = resyncPhaseAnalyzing
	ResyncPhaseSyncing   = resyncPhaseSyncing
)
View Source
const GlamourStyleLight = "light"

Variables

This section is empty.

Functions

func NewFilterState

func NewFilterState() el.FilterState

func SingleSessionConversation

func SingleSessionConversation(meta conv.SessionMeta) conv.Conversation

Types

type DeepSearchDebounceMsg

type DeepSearchDebounceMsg = deepSearchDebounceMsg

func NewDeepSearchDebounceMsg

func NewDeepSearchDebounceMsg(revision int, query string) DeepSearchDebounceMsg

type DeepSearchResultMsg

type DeepSearchResultMsg = deepSearchResultMsg

type Model

type Model = browserModel

func NewModelWithStore

func NewModelWithStore(
	ctx context.Context,
	archiveDir string,
	logFilePath string,
	glamourStyle string,
	timestampFormat string,
	cacheSize int,
	debounceMs int,
	theme *el.Theme,
	store Store,
	launchers ...SessionLauncher,
) Model

func (Model) AllConversations

func (m Model) AllConversations() []conv.Conversation

func (Model) ApplyResyncProgress

func (m Model) ApplyResyncProgress(progress arch.SyncProgress) (Model, bool)

func (Model) ArchiveDir

func (m Model) ArchiveDir() string

func (Model) BrowserCacheSize

func (m Model) BrowserCacheSize() int

func (Model) ClearResync

func (m Model) ClearResync() Model

func (Model) DeepSearchDebounceMs

func (m Model) DeepSearchDebounceMs() int

func (Model) FilterState

func (m Model) FilterState() el.FilterState

func (Model) LoadSessionsCmd

func (m Model) LoadSessionsCmd() tea.Cmd

func (Model) Notification

func (m Model) Notification() el.Notification

func (Model) OpenConversationID

func (m Model) OpenConversationID() string

func (Model) OpenLoadedSession

func (m Model) OpenLoadedSession(conversation conv.Conversation, session conv.Session) Model

func (Model) PrepareForResyncReload

func (m Model) PrepareForResyncReload() Model

func (Model) ResyncActive

func (m Model) ResyncActive() bool

func (Model) ResyncSpinnerTickCmd

func (m Model) ResyncSpinnerTickCmd() tea.Cmd

func (Model) SearchQuery

func (m Model) SearchQuery() string

func (Model) SearchRevision

func (m Model) SearchRevision() int

func (Model) SearchSelectedConversationID

func (m Model) SearchSelectedConversationID() string

func (Model) SetConversationLists

func (m Model) SetConversationLists(
	allConversations []conv.Conversation,
	mainConversations []conv.Conversation,
	filter el.FilterState,
) Model

func (Model) SetListConversations

func (m Model) SetListConversations(conversations []conv.Conversation, selected int) Model

func (Model) SetNotification

func (m Model) SetNotification(n el.Notification) (Model, tea.Cmd)

func (Model) SetResyncPhase

func (m Model) SetResyncPhase(phase ResyncPhase) Model

func (Model) SetSearchState

func (m Model) SetSearchState(
	query string,
	baseConversations []conv.Conversation,
	visibleConversations []conv.Conversation,
	selectedConversationID string,
) Model

func (Model) SetSize

func (m Model) SetSize(width, height int) Model

func (Model) StartResync

func (m Model) StartResync() Model

func (Model) TimestampFormat

func (m Model) TimestampFormat() string

func (Model) ViewerSession

func (m Model) ViewerSession() conv.Session

type OpenStatsRequestedMsg

type OpenStatsRequestedMsg struct{}

type ResyncPhase

type ResyncPhase = resyncPhase

type ResyncRequestedMsg

type ResyncRequestedMsg = browserResyncRequestedMsg

type SessionLauncher

type SessionLauncher = sessionLauncher

func NewSessionLauncher

func NewSessionLauncher(backends ...src.Backend) SessionLauncher

type Store

type Store = browserStore

func NewStore

func NewStore(store *canonical.Store) Store

Jump to

Keyboard shortcuts

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