mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-10 19:10:59 +08:00
docs: re-record demo GIF — deterministic FZF handling, all 6 scenes clean
This commit is contained in:
parent
56c3917682
commit
f6631dfdf1
2 changed files with 32 additions and 54 deletions
BIN
.github/demo.gif
vendored
BIN
.github/demo.gif
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 644 KiB After Width: | Height: | Size: 497 KiB |
86
.github/demo.tape
vendored
86
.github/demo.tape
vendored
|
|
@ -1,17 +1,6 @@
|
||||||
# chopsticks demo — "what can I do with this?"
|
# chopsticks demo — reliable version
|
||||||
# Record: cd ~/.vim && vhs .github/demo.tape
|
# Key insight: NEVER use Escape to close FZF — always Enter (select result).
|
||||||
#
|
# This guarantees Vim returns to Normal mode with a known buffer.
|
||||||
# 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
|
|
||||||
|
|
||||||
Output .github/demo.gif
|
Output .github/demo.gif
|
||||||
Set Shell bash
|
Set Shell bash
|
||||||
|
|
@ -22,61 +11,50 @@ Set Theme "Builtin Solarized Dark"
|
||||||
Set TypingSpeed 40ms
|
Set TypingSpeed 40ms
|
||||||
Set Padding 10
|
Set Padding 10
|
||||||
|
|
||||||
# ── 1. Open project — sidebar + dashboard ──────────────────────────────────
|
# ── 1. Open file — syntax + statusline ─────────────────────────────────────
|
||||||
Type "cd /tmp/demo-project && vim ."
|
Type "cd /tmp/demo-project && vim app.py"
|
||||||
Enter
|
Enter
|
||||||
Sleep 2.5s
|
Sleep 2.5s
|
||||||
|
|
||||||
# ── 2. Fuzzy find — open a file instantly ──────────────────────────────────
|
# ── 2. Fuzzy find — open another file ──────────────────────────────────────
|
||||||
# move focus to the main window first
|
|
||||||
Type@100ms "\x17l"
|
|
||||||
Sleep 0.3s
|
|
||||||
Ctrl+p
|
Ctrl+p
|
||||||
Sleep 0.8s
|
|
||||||
Type "app"
|
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Enter
|
Type "utils"
|
||||||
Sleep 1.5s
|
|
||||||
|
|
||||||
# ── 3. Ripgrep — search "greet" across project ─────────────────────────────
|
|
||||||
Type ",rg"
|
|
||||||
Sleep 0.8s
|
|
||||||
Type "greet"
|
|
||||||
Sleep 1.2s
|
Sleep 1.2s
|
||||||
Escape
|
|
||||||
Sleep 0.5s
|
|
||||||
|
|
||||||
# ── 4. Run file — see output immediately ───────────────────────────────────
|
|
||||||
Type ",cr"
|
|
||||||
Sleep 2.5s
|
|
||||||
# dismiss "Press ENTER" prompt
|
|
||||||
Enter
|
Enter
|
||||||
Sleep 0.8s
|
|
||||||
|
|
||||||
# ── 5. Git status ──────────────────────────────────────────────────────────
|
|
||||||
Type ",gs"
|
|
||||||
Sleep 2s
|
Sleep 2s
|
||||||
Type "q"
|
|
||||||
Sleep 0.5s
|
|
||||||
|
|
||||||
# ── 6. Sidebar toggle ──────────────────────────────────────────────────────
|
# ── 3. Ripgrep — search + jump to result ───────────────────────────────────
|
||||||
# close the vim . sidebar first
|
Type ",rg"
|
||||||
Type ",e"
|
Sleep 1s
|
||||||
Sleep 0.5s
|
Type "greet"
|
||||||
# re-open it
|
|
||||||
Type ",e"
|
|
||||||
Sleep 1.5s
|
Sleep 1.5s
|
||||||
# close it
|
Enter
|
||||||
Type ",e"
|
Sleep 2s
|
||||||
Sleep 0.8s
|
|
||||||
|
|
||||||
# ── 7. Cheat sheet — discover all keybindings ──────────────────────────────
|
# ── 4. Run file ────────────────────────────────────────────────────────────
|
||||||
Type ",?"
|
# reset to app.py (known state)
|
||||||
|
Type ":edit app.py"
|
||||||
|
Enter
|
||||||
|
Sleep 1s
|
||||||
|
Type ",cr"
|
||||||
Sleep 3s
|
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"
|
Type "q"
|
||||||
Sleep 0.5s
|
Sleep 0.5s
|
||||||
|
|
||||||
# ── done ────────────────────────────────────────────────────────────────────
|
# ── done ───────────────────────────────────────────────────────────────────
|
||||||
Type ":qa!"
|
Type ":qa!"
|
||||||
Enter
|
Enter
|
||||||
Sleep 0.5s
|
Sleep 0.5s
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue