6bb86066ec7c0ffa97e0f77815d42e435cc85aab
Some checks failed
Build Workflow / build (push) Failing after 38s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tmux Cheat Sheet (Alfred Workflow)
Quickly look up tmux commands, key bindings, and practical examples directly from Alfred.
Install
- Build the workflow:
bash build/build_workflow.sh - Open
dist/tmux-command-search.alfredworkflow— Alfred imports it automatically.
Usage
- Open Alfred and type
tmuxfollowed by your query. - Results are ranked by how commonly they are needed.
- Press Enter to copy the result to clipboard.
- Press Cmd+L for a large type view.
Examples
| Query | Finds |
|---|---|
tmux new session name |
tmux new -s mysession |
tmux split |
Key bindings (Ctrl+b %, Ctrl+b ") and commands |
tmux attach |
All ways to attach to a session |
tmux copy |
Copy mode shortcuts and buffer commands |
tmux mouse |
tmux set -g mouse on |
Configuration
Open Alfred → Workflows → tmux Cheat Sheet → Configure Workflow to change the prefix key (default: Ctrl+b).
Data Sources
- Key bindings are parsed from your local
man tmux(always matches your installed version). - Practical examples are curated in
data/examples.tsv— add your own by appending a line:command-name\tdescription\ttmux command. - Tier ordering controls result priority in
data/tiers.tsv(1 = essential, 4 = rare).
To regenerate the cheat sheet after a tmux update:
bash scripts/parse_manual.sh
bash build/build_workflow.sh
Development
Run tests:
bash tests/test_tmux_search.sh
Project Structure
data/
examples.tsv Curated practical examples
tiers.tsv Usage frequency ranking (1–4)
tmux_commands.tsv Generated cheat sheet (do not edit)
scripts/
parse_manual.sh Parses man page + examples into tmux_commands.tsv
tmux_search.sh Alfred script filter (awk-based, <15 ms)
build/
build_workflow.sh Packages .alfredworkflow
tests/
test_tmux_search.sh Basic search tests
icon.png Workflow icon
info.plist Alfred workflow definition
Description
Releases
1
v2026.03.10
Latest
Languages
Shell
100%