Skip to content

UUGTech/figpick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Demo

figpick demo

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.

About

FIGlet font picker

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages