PromptManager TUI for browsing prompt templates, filling variables, and copying the rendered result to the clipboard.
- Reads templates from
~/.config/pmt/prompts.md - Uses
## Titleas template name; content until next heading is the body - Supports hierarchy with
/in titles (TreeView) - Form-based variable input with live preview
- Variables:
{name}or{name|description} - Random placeholders:
{random|"opt1" "opt2" ...}with reroll - Copy renders only the final output (shows a short status message)
Rust toolchain is required.
cargo install --path .pmtCreate ~/.config/pmt/prompts.md:
## Writing/Email/FollowUp
Write a polite follow-up email to {name|recipient} about {topic|subject}.
## Coding/Review/Checklist
Review the {area|component} and list {random|"security" "performance" "usability"} risks.Rules:
- Each template starts with
## Title - Body is everything until the next
## - Leading whitespace is preserved
- If no template headings exist, the app shows an error
{name}or{name|description}creates an input field- Empty input leaves the placeholder unchanged
{random|"opt1" "opt2" ...}is rolled on load and kept consistent between preview and final copy
List view:
- Up/Down or j/k: move
- Enter / double click: open template
- e: edit template
- q: quit
Editor view:
- Tab or Up/Down: switch fields
- Ctrl+C: copy rendered output
- F5: reroll random placeholders
- Esc: back to list
- Mouse capture is enabled to support double click in the list