Skip to main content
Version: 0.2.3

Terminal UI Usage Guide

This guide covers how to launch and navigate the Sercha TUI.

Launching the TUI

sercha tui

Keyboard Shortcuts

KeyAction
or kMove selection up
or jMove selection down
EnterExecute search / Select item
EscGo back / Cancel

Global

KeyAction
?Toggle help view
qQuit TUI
Ctrl+CForce quit

Sources & Documents

KeyAction
dDelete source (Sources View)
rReload sources list
oOpen document in external app
PgUpPage scroll up (content views)
PgDnPage scroll down (content views)

Search Workflow

  1. Type your query in the search input
  2. Press Enter to execute the search
  3. Navigate results using arrow keys or j/k
  4. Select a result with Enter to view details

Sources & Documents Workflow

Navigate the source hierarchy to manage and browse documents:

Add Source Workflow

The Add Source wizard guides you through configuring a new data source:

Steps

  1. Select Connector - Choose from available connector types (Filesystem, GitHub, Google Drive, etc.)
  2. Configure - Enter connector-specific settings (path, owner/repo, folder ID, etc.)
  3. Authenticate (if required) - Complete OAuth flow or enter credentials
  4. Done - Source is created and ready for sync

Keyboard Shortcuts

KeyAction
or kMove selection up
or jMove selection down
EnterSelect / Continue
EscCancel / Go back
TabNext input field
Shift+TabPrevious input field

Views

Search View (Default)

The main view where you enter queries and browse results.

ElementDescription
Title"Sercha" header
Search InputText field for entering queries
Results ListScrollable list of matching documents
Status BarShows state (ready, searching, error) and result count

Help View

Press ? to see keyboard shortcuts and usage hints.

Main navigation hub accessible from startup or by pressing Esc from other views.

OptionDescription
SearchNavigate to search view
SourcesBrowse configured sources
Add SourceAdd a new data source
SettingsConfigure search modes and AI providers
HelpView keyboard shortcuts
QuitExit the TUI

Sources View

Browse and manage configured data sources.

ElementDescription
Source ListAll configured sources with type indicators
ActionsEnter for details, d to delete, r to reload

Source Detail View

Detailed view for a single source with available actions.

OptionDescription
View DocumentsBrowse documents from this source
Sync NowTrigger synchronization
Delete SourceRemove source and its documents
BackReturn to sources list

Documents View

Browse documents belonging to a source.

ElementDescription
Document ListDocuments with titles and metadata
Action MenuPress Enter to open action menu

Action Menu Options:

  • Show Content - View document text
  • Show Details - View document metadata
  • Open Document - Open in external app
  • Refresh - Re-sync document
  • Exclude - Remove from index

Document Content View

Full-text view of document content.

KeyAction
or kScroll up
or jScroll down
PgUpPage up
PgDnPage down
EscBack to documents

Document Details View

Metadata view for a document.

FieldDescription
TitleDocument name
SourceParent source name and type
URIFile path or URL
ChunksNumber of indexed chunks
TimestampsCreated/updated dates
MetadataAdditional properties

Settings View

Configure search settings and AI providers within the TUI.

Overview Screen:

OptionDescription
Search ModeSelect text_only, hybrid, llm_assisted, or full
Embedding ProviderConfigure Ollama or OpenAI for semantic search
LLM ProviderConfigure Ollama, OpenAI, or Anthropic for query expansion

The overview screen displays current settings with configuration status indicators:

  • [configured] - Provider is ready to use
  • [needs API key] - Cloud provider requires API key

Keyboard Shortcuts:

KeyAction
or kMove selection up
or jMove selection down
EnterEdit selected setting
TabFocus API key input (when configuring providers)
EscGo back to menu

Provider Configuration:

When selecting a cloud provider (OpenAI, Anthropic), you'll be prompted to enter an API key. The key is masked during entry for security.

ProviderTypeAPI Key Required
OllamaLocalNo
OpenAICloudYes
AnthropicCloudYes (LLM only)

Search Modes:

ModeDescriptionRequirements
Text OnlyKeyword search only (fastest)None
HybridText + semantic vector searchEmbedding provider
LLM AssistedText + LLM query expansionLLM provider
FullText + semantic + LLMBoth providers

Troubleshooting

TUI doesn't fill terminal

Ensure your terminal supports alternate screen mode. Most modern terminals (iTerm2, Terminal.app, Alacritty, kitty) support this.

Colors look wrong

The TUI uses true color (24-bit). If colors appear wrong:

  • Ensure TERM is set correctly (e.g., xterm-256color)
  • Try a terminal with true color support

Next