Skip to content

hmk/try-bedazzled

try-bedazzled

A modern, themeable scratch-directory manager inspired by tobi/try-cli.

A Go rewrite using Charmbracelet โ€” the same dated-throwaway-folder workflow, now with shifting cursor hues, rainbow fuzzy hits, gradient row highlights, and a theme picker that lets you turn the sparkle up to 11 (or all the way down to a calm monochrome โ€” every preference welcome). ๐Ÿฆ„

demo


What it does

try gives every experiment a dated home directory and a fast fuzzy selector to jump back into it:

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 โ–ธ redis                         4 matches
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ–ธ ๐Ÿ“‚ 2026-04-14  redis-cluster         3h ago
  ๐Ÿ“ฆ 2026-04-12  redis-sentinel        2d ago
  ๐Ÿฆ€ 2026-04-11  redis-rs-bench        3d ago
  ๐Ÿ“‚ 2026-04-09  redis-lua-scripts     5d ago
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  enter select  โ€ข  ctrl-d delete  โ€ข  ctrl-r rename  โ€ข  ctrl-p preview on  โ€ข  ctrl-g settings  โ€ข  esc quit

Type to filter. Press Enter to cd. Type a new name and press Enter to create. That's it.


Install

Homebrew (macOS, Linux):

brew install hmk/tap/try-bedazzled

curl (everywhere else):

curl -fsSL https://raw.githubusercontent.com/hmk/try-bedazzled/main/install.sh | sh

Then restart your shell (or source ~/.zshrc) and run try.

The curl installer drops the signed-and-notarized binary in /usr/local/bin/ and adds the shell function to your rc file. The Homebrew formula prints the same one-line shell-config snippet on first install (brew info try-bedazzled).

For other install paths (Go, manual download, custom directory), see INSTALL.md.


Commands

Command What it does
try Open the fuzzy selector
try redis Pre-filter the selector for "redis"
try clone <url> [name] Git clone into a dated directory
try worktree <name> Git worktree (or mkdir if not in a repo)
try theme Interactive theme picker with live preview
try settings Open the settings menu
try init [path] Print shell integration script

Keyboard shortcuts

Key Action
Type Filter (fuzzy, real-time)
โ†‘ / โ†“ or Ctrl-K / Ctrl-J Navigate
Enter Select / create / confirm delete
Ctrl-D Mark/unmark entry for deletion
Ctrl-R Rename (preserves date prefix)
Ctrl-P Toggle file-tree preview panel
Ctrl-G Open settings menu
Esc Cancel

The Bedazzling

Themes

Five built-in themes, switchable live with try theme โ€” pick your sparkle level:

Theme Vibe
bedazzled (default) ๐ŸŒˆ Catppuccin Mocha pastels under a full rainbow finish โ€” rainbow search rules, shifting cursor hues, rainbow fuzzy hits, gradient row highlight
rainbow ๐Ÿ’– Hot-pink accent, all rainbow, all the time โ€” the loudest one
catppuccin ๐Ÿฎ Catppuccin Mocha pastels, sparkle dialed back
dracula ๐Ÿง› Dark and saturated
minimal ๐Ÿชจ ASCII-safe, no unicode, no glitter โ€” perfect for CI logs and quiet terminals

Set in config or override per-session:

# ~/.config/try/config.toml
theme = "catppuccin"
TRY_THEME=dracula try redis

Drop a .toml in ~/.config/try/themes/ to add your own:

# ~/.config/try/themes/nord.toml
[colors]
accent  = "#88C0D0"
dim     = "#4C566A"
text    = "#ECEFF4"
match   = "#EBCB8B"
danger  = "#BF616A"
success = "#A3BE8C"

[symbols]
cursor  = "โ–ธ"
folder  = "๐Ÿ“‚"

[layout]
show_icons   = true
show_date    = "right"
show_time    = true
search_style = "bordered"

Content-aware icons

The icon registry reads slug words to pick a project-appropriate emoji automatically:

Slug word Icon
go, golang ๐Ÿน
rust ๐Ÿฆ€
python, py ๐Ÿ
postgres, pg ๐Ÿ˜
redis ๐Ÿ“ฆ
docker, k8s ๐Ÿณ
react, vue, svelte โš›๏ธ
ml, llm, ai ๐Ÿค–
โ€ฆand 50+ more

Override or extend with your own in config:

[custom_icons]
django   = "๐ŸŽญ"
temporal = "โฑ"
shopify  = "๐Ÿ›"

Live folder preview

Press Ctrl-P to toggle a live file-tree preview of the highlighted directory inline in the selector. State persists across launches โ€” turn it off once, it stays off.

Settings menu

try settings (or Ctrl-, inside the selector) opens a Huh form that covers every preference and writes ~/.config/try/config.toml:

  • Theme
  • Display mode (fullscreen / inline)
  • Preview panel default
  • Emoji icons toggle
  • Add custom slugโ†’icon mappings

Configuration

Full config reference:

# ~/.config/try/config.toml

tries_path      = "~/tries"          # where your directories live
theme           = "bedazzled"        # built-in or custom theme name
display_mode    = "inline"           # "inline" | "fullscreen" (alt screen)
inline_min_rows = 15                 # minimum rows in inline mode
preview_enabled = true               # file-tree preview panel
show_emojis     = true               # folder/type icons

[custom_icons]
django = "๐ŸŽญ"
rust   = "๐Ÿฆ€"

Performance

Benchmarked on macOS (Apple Silicon M4) with 100 try directories:

Operation C (try-cli) Go (try-bedazzled) Ruby (try)
Startup + scan 1.5 ms 2.4 ms 40 ms
Fuzzy match + select 2.0 ms 3.7 ms 44 ms
Version (startup only) 1.2 ms 2.0 ms 36 ms
Binary size 92 KB 5.1 MB interpreted

Go is ~1.6ร— slower than C for raw operations, but 15โ€“20ร— faster than Ruby โ€” and you trade those microseconds for a wardrobe full of rainbows.

Measured with hyperfine. Reproduce with bench/bench.sh.


Architecture

cmd/try/main.go
internal/
  cli/       Cobra commands: init, exec, clone, worktree, theme, settings
  dirs/      Directory scanning, naming, date-prefix parsing, slug normalization
  fuzzy/     Scoring algorithm (ported from tobi/try-cli's C)
  shell/     Shell script generation (cd, mkdir, delete, rename, init wrappers)
  theme/     TOML theming, icon registry, config read/write, built-in themes
  tui/       Bubble Tea model, Lip Gloss styles, theme picker table, file tree

Credits

Inspired by Tobias Lutke's original try (Ruby) and try-cli (C). Built with Charmbracelet libraries: Bubble Tea, Lip Gloss, Bubbles, Huh.

License

BSD 3-Clause

About

Fresh directories for every vibe - at the speed of rainbows and unicorns ๐ŸŒˆ๐Ÿฆ„

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors