mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-10 19:10:59 +08:00
docs: rewrite demo tape — 7-scene "what can I do" narrative
Scenes: vim . dashboard, fuzzy find, ripgrep, run file, sidebar toggle, git status, cheat sheet. Optional LSP section commented out.
This commit is contained in:
parent
565f2fc80b
commit
ecf0a1b260
1 changed files with 69 additions and 22 deletions
91
.github/demo.tape
vendored
91
.github/demo.tape
vendored
|
|
@ -1,47 +1,94 @@
|
||||||
|
# chopsticks demo — "what can I do with this?"
|
||||||
|
# Record: cd ~/.vim && vhs .github/demo.tape
|
||||||
|
#
|
||||||
|
# Setup: mkdir -p /tmp/demo-project && cd /tmp/demo-project
|
||||||
|
# Create app.py, utils.py, config.yaml (small Python project)
|
||||||
|
# git init && git add -A && git commit -m "init"
|
||||||
|
#
|
||||||
|
# Optional LSP: open a .py file in vim, run :LspInstallServer
|
||||||
|
# then uncomment the LSP section below
|
||||||
|
|
||||||
Output .github/demo.gif
|
Output .github/demo.gif
|
||||||
Set Shell bash
|
Set Shell bash
|
||||||
Set FontSize 14
|
Set FontSize 14
|
||||||
Set Width 960
|
Set Width 1080
|
||||||
Set Height 540
|
Set Height 620
|
||||||
Set Theme "Builtin Solarized Dark"
|
Set Theme "Builtin Solarized Dark"
|
||||||
Set TypingSpeed 50ms
|
Set TypingSpeed 40ms
|
||||||
Set Padding 10
|
Set Padding 10
|
||||||
|
|
||||||
Type "vim ~/.vim/modules/core.vim"
|
# ── 1. Open project — sidebar + dashboard ──────────────────────────────────
|
||||||
|
Type "cd /tmp/demo-project && vim ."
|
||||||
Enter
|
Enter
|
||||||
Sleep 1.5s
|
Sleep 2.5s
|
||||||
|
|
||||||
# Show the code with solarized theme and statusline
|
# ── 2. Fuzzy find — instant file search ────────────────────────────────────
|
||||||
|
Ctrl+p
|
||||||
|
Sleep 0.8s
|
||||||
|
Type "utils"
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
|
Enter
|
||||||
|
Sleep 1.2s
|
||||||
|
|
||||||
# Use Ctrl+p for fuzzy find
|
# ── 3. Ripgrep — search across entire project ──────────────────────────────
|
||||||
Type "\x10"
|
Type ",rg"
|
||||||
Sleep 1s
|
Sleep 0.8s
|
||||||
Type "lsp"
|
Type "greet"
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Escape
|
Escape
|
||||||
Sleep 0.5s
|
Sleep 0.5s
|
||||||
|
|
||||||
# Go to definition
|
# ── 4. Run file — one keystroke ─────────────────────────────────────────────
|
||||||
Type "gg"
|
# open app.py first
|
||||||
Sleep 0.3s
|
Ctrl+p
|
||||||
Type "/mapleader"
|
Sleep 0.5s
|
||||||
|
Type "app"
|
||||||
|
Sleep 0.8s
|
||||||
Enter
|
Enter
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
|
Type ",cr"
|
||||||
# Show cheat sheet
|
|
||||||
Type ",?"
|
|
||||||
Sleep 2s
|
Sleep 2s
|
||||||
|
Enter
|
||||||
|
Sleep 0.5s
|
||||||
|
|
||||||
|
# ── 5. File sidebar toggle ─────────────────────────────────────────────────
|
||||||
|
Type ",e"
|
||||||
|
Sleep 1.5s
|
||||||
|
Type ",e"
|
||||||
|
Sleep 0.8s
|
||||||
|
|
||||||
|
# ── 6. Git status ──────────────────────────────────────────────────────────
|
||||||
|
Type ",gs"
|
||||||
|
Sleep 1.5s
|
||||||
Type "q"
|
Type "q"
|
||||||
Sleep 0.5s
|
Sleep 0.5s
|
||||||
|
|
||||||
# Open file browser
|
# ── 7. Cheat sheet — discover everything ───────────────────────────────────
|
||||||
Type ",e"
|
Type ",?"
|
||||||
Sleep 1.5s
|
Sleep 2.5s
|
||||||
Escape
|
Type "q"
|
||||||
Sleep 0.5s
|
Sleep 0.5s
|
||||||
|
|
||||||
# Quit
|
# ── done ────────────────────────────────────────────────────────────────────
|
||||||
Type ":qa!"
|
Type ":qa!"
|
||||||
Enter
|
Enter
|
||||||
Sleep 0.5s
|
Sleep 0.5s
|
||||||
|
|
||||||
|
# ── (optional) LSP — uncomment after :LspInstallServer in a .py file ──────
|
||||||
|
# Ctrl+p
|
||||||
|
# Sleep 0.5s
|
||||||
|
# Type "utils"
|
||||||
|
# Sleep 0.8s
|
||||||
|
# Enter
|
||||||
|
# Sleep 1.5s
|
||||||
|
# Type "/greet"
|
||||||
|
# Enter
|
||||||
|
# Sleep 0.5s
|
||||||
|
# Type "K"
|
||||||
|
# Sleep 2s
|
||||||
|
# Escape
|
||||||
|
# Sleep 0.5s
|
||||||
|
# Type "gd"
|
||||||
|
# Sleep 1.5s
|
||||||
|
# Ctrl+o
|
||||||
|
# Sleep 0.8s
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue