figpick

module
v0.0.0-...-2d19d06 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT

README

figpick

An interactive CLI that turns text into ASCII art. Pick a FIGlet font with a live preview, then send the result to stdout and the clipboard.

Features

  • Live preview while browsing 149 FIGlet fonts (powered by go-figure)
  • Two-pane TUI (scrolling font list + preview) built with Bubble Tea
  • Incremental font-name search (/) to jump to a font fast
  • Output to stdout and the system clipboard in one keystroke
  • Pass text as an argument, or type it in an input prompt on launch

Install

go install github.com/UUGTech/figpick/cmd/figpick@latest

Or build from source:

git clone https://github.com/UUGTech/figpick.git
cd figpick
go build -o figpick ./cmd/figpick

Usage

# Provide the text up front (starts on the font picker)
figpick Hello

# No argument: type the text in the prompt first
figpick
Keys
Key Action
↑ / ↓, j / k Move through fonts (preview updates)
/ Search: type to filter the font list
enter Confirm selection: print to stdout + copy
q / esc Quit (input mode: ctrl+c)

While searching: type to filter, enter applies the filter (back to navigation), esc clears it.

Development

go test ./...   # run tests
go vet ./...    # static checks
go build ./...  # build

Project layout

cmd/figpick/        CLI entrypoint: args -> TUI -> stdout + clipboard
internal/render/    text + font -> ASCII art (FIGlet), font list
internal/tui/       Bubble Tea model (input + select screens)
internal/clipboard/ mockable clipboard Writer

License

MIT. Dependencies and their assets remain under their respective licenses.

Directories

Path Synopsis
cmd
figpick command
Command text2ascii converts text to ASCII art.
Command text2ascii converts text to ASCII art.
internal
clipboard
Package clipboard provides a small, mockable interface over the system clipboard.
Package clipboard provides a small, mockable interface over the system clipboard.
render
Package render converts text into ASCII art using FIGlet fonts.
Package render converts text into ASCII art using FIGlet fonts.
tui
Package tui implements the interactive terminal UI for selecting a FIGlet font while previewing the rendered ASCII art.
Package tui implements the interactive terminal UI for selecting a FIGlet font while previewing the rendered ASCII art.

Jump to

Keyboard shortcuts

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