lla Google Search Plugin

August 16, 2026 ยท View on GitHub

Google search plugin for lla with live autosuggestions, history management, and clipboard fallback.

Features

  • Live Autocomplete: Real-time search suggestions from Google API with loading states
  • Smart Search: Multiple input options (live suggestions, history, clipboard)
  • History Management: Persistent search history with statistics and analytics
  • Interactive Interface: Rich TUI with visual feedback

Usage

# Perform a Google search (live suggestions)
lla plugin run google_search search

# Search with selected/clipboard text (prefills input; live suggestions)
lla plugin run google_search search-selected

# Manage search history
lla plugin run google_search history

# Configure preferences
lla plugin run google_search preferences

# Show help
lla plugin run google_search help

Configuration

Config location: ~/.config/lla/plugins/google_search/config.toml

remember_search_history = true    # Enable/disable history persistence
use_clipboard_fallback = true     # Enable/disable clipboard fallback
max_history_size = 100           # Maximum history entries

[colors]
success = "bright_green"
info = "bright_cyan"
warning = "bright_yellow"
error = "bright_red"
prompt = "bright_blue"

Display Examples

Live Autocomplete (use โ†‘/โ†“ to select, Enter to confirm):

๐Ÿ’ก Enter a search query to see live Google suggestions
Search query: rust programming

๐Ÿ”„ Fetching suggestions from Google...
โ ‹ Loading suggestions...

โœจ 10 suggestions found:
Select a search query
> ๐Ÿ” rust programming (your input)
  ๐Ÿ’ก rust programming tutorial
  ๐Ÿ’ก rust programming language
  ๐Ÿ’ก rust programming for beginners
  ๐Ÿ’ก rust programming projects
  ...

History Statistics:

๐Ÿ“Š Search History Statistics:
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 โ€ข Total searches: 25
 โ€ข Unique queries: 18
 โ€ข Oldest search: 2025-10-15 09:30:00
 โ€ข Most recent: 2025-10-20 14:30:45

๐Ÿ”ฅ Top 5 searches:
 โ€ข rust programming tutorial (5x)
 โ€ข golang best practices (3x)
 โ€ข python async await (2x)