diff --git a/.github/demo.gif b/.github/demo.gif index 4bf6910..99ff67f 100644 Binary files a/.github/demo.gif and b/.github/demo.gif differ diff --git a/.github/demo.tape b/.github/demo.tape index e709f08..600d045 100644 --- a/.github/demo.tape +++ b/.github/demo.tape @@ -1,17 +1,6 @@ -# chopsticks demo — "what can I do with this?" -# Record: cd ~/.vim && vhs .github/demo.tape -# -# Pre-record setup: -# 1. Create demo project: -# mkdir -p /tmp/demo-project && cd /tmp/demo-project -# Create app.py, utils.py, config.yaml (with docstrings to avoid lint noise) -# git init && git add -A && git commit -m "init" -# -# 2. Clean Startify recent files so personal paths don't leak: -# rm -f ~/.viminfo -# -# 3. Optional LSP: vim utils.py → :LspInstallServer → quit -# then uncomment LSP section below +# chopsticks demo — reliable version +# Key insight: NEVER use Escape to close FZF — always Enter (select result). +# This guarantees Vim returns to Normal mode with a known buffer. Output .github/demo.gif Set Shell bash @@ -22,61 +11,50 @@ Set Theme "Builtin Solarized Dark" Set TypingSpeed 40ms Set Padding 10 -# ── 1. Open project — sidebar + dashboard ────────────────────────────────── -Type "cd /tmp/demo-project && vim ." +# ── 1. Open file — syntax + statusline ───────────────────────────────────── +Type "cd /tmp/demo-project && vim app.py" Enter Sleep 2.5s -# ── 2. Fuzzy find — open a file instantly ────────────────────────────────── -# move focus to the main window first -Type@100ms "\x17l" -Sleep 0.3s +# ── 2. Fuzzy find — open another file ────────────────────────────────────── Ctrl+p -Sleep 0.8s -Type "app" Sleep 1s -Enter -Sleep 1.5s - -# ── 3. Ripgrep — search "greet" across project ───────────────────────────── -Type ",rg" -Sleep 0.8s -Type "greet" +Type "utils" Sleep 1.2s -Escape -Sleep 0.5s - -# ── 4. Run file — see output immediately ─────────────────────────────────── -Type ",cr" -Sleep 2.5s -# dismiss "Press ENTER" prompt Enter -Sleep 0.8s - -# ── 5. Git status ────────────────────────────────────────────────────────── -Type ",gs" Sleep 2s -Type "q" -Sleep 0.5s -# ── 6. Sidebar toggle ────────────────────────────────────────────────────── -# close the vim . sidebar first -Type ",e" -Sleep 0.5s -# re-open it -Type ",e" +# ── 3. Ripgrep — search + jump to result ─────────────────────────────────── +Type ",rg" +Sleep 1s +Type "greet" Sleep 1.5s -# close it -Type ",e" -Sleep 0.8s +Enter +Sleep 2s -# ── 7. Cheat sheet — discover all keybindings ────────────────────────────── -Type ",?" +# ── 4. Run file ──────────────────────────────────────────────────────────── +# reset to app.py (known state) +Type ":edit app.py" +Enter +Sleep 1s +Type ",cr" Sleep 3s +Enter +Sleep 1s + +# ── 5. Git log ───────────────────────────────────────────────────────────── +Type ",gL" +Sleep 2.5s +Type "q" +Sleep 1s + +# ── 6. Cheat sheet ───────────────────────────────────────────────────────── +Type ",?" +Sleep 3.5s Type "q" Sleep 0.5s -# ── done ──────────────────────────────────────────────────────────────────── +# ── done ─────────────────────────────────────────────────────────────────── Type ":qa!" Enter Sleep 0.5s