百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

shiki

> 开发工具
开源

Rust 中的 TUI 记事应用程序 — 采用 Yazi 风格的导航、作为独立 git 仓库的笔记本、真正的按笔记版本历史、主题以及快速模糊搜索。

174 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

Rust 中的 TUI 记事应用程序 — 采用 Yazi 风格的导航、作为独立 git 仓库的笔记本、真正的按笔记版本历史、主题以及快速模糊搜索。

shiki (私記)

Personal notes, private log. A TUI note-taking app in Rust — three-pane Yazi-style navigation, notebooks as independent git repos, Markdown with frontmatter, inline and external editing, real per-note version history, themes, and fast fuzzy search.

See IDEA.md for the full design spec (keybinding tables, config schema, theme list) and CHANGELOG.md for release history.

Demo

Three notebooks, ~30 notes, folders nested two levels deep — a scripted, reproducible tour (scripts/demo-gif.sh, recorded with VHS) covering global and in-notebook fuzzy search, tags, real multi-select (batch delete), creating and moving folders, writing a full note from scratch in the inline editor, a git commit, and live theme switching. Regenerated automatically after every release (same update-screenshots job in release.yml that refreshes the screenshots below), so it's always recorded against that release's own binary — not a workflow from several versions ago.

Screenshots

Gruvbox Dark
Catppuccin Mocha










Cyberpunk 2077
LoL (Jinx)

These update automatically after every release (update-screenshots job in release.yml), so they always reflect the current version — not a screenshot from three releases ago. All 37 built-in themes have a live, interactive preview on the website.

Features

  • Three-pane TUI, Yazi-inspired: modal navigation (hjkl/arrows), collapsing Miller-columns layout, and fully responsive to terminal size — wide terminals get the 3-column layout, narrow/square ones stack panels vertically, very small ones show just the focused panel, full screen.
  • Notebooks are independent git repos — plain directories under the hood, each its own repo, with folders nested to any depth (nb-style). Frontmatter is optional on read, so a plain Markdown file dropped in from elsewhere still shows up.
  • Bring your own notes directory — [general] data_dir points the whole notebooks root at an existing folder (e.g. an Obsidian vault), and [notebooks.] path points an individual notebook at any directory independent of that, with no migration, symlinks, or duplicated files.
  • Real per-note version history (not a separate versioning system): every commit that changed a specific note, browsable and revertible straight from the TUI.
  • Full git workflow per notebook: manual sync/push/pull, auto_sync (commit + push automatically every N changes), per-notebook policy overrides, robust HTTPS/SSH auth that reuses your system's own git credential store, and automatic fallback to the remote's actual default branch.
  • 37 built-in themes (Catppuccin Mocha, Tokyo Night, Gruvbox ×6, Solarized Dark, Nord, Dracula, One Dark, Monokai, League of Legends champions, video-game and hacker/cyberpunk palettes, and a terminal-native default that inherits your terminal's own palette) with a live-preview picker.
  • Config-driven keybindings, scoped by focus, fully remappable in config.toml — nothing hardcoded except plain navigation.
  • Mouse drag-to-select and copy in PREVIEW — drag over a note's rendered body to highlight and copy the selected rows to the clipboard (OSC 52) on release; toggleable via general.mouse_drag_selection.
  • Global fuzzy search across every notebook, plus in-notebook fuzzy jump.
  • Notebook tree view, tags panel, daily notes with templates, moving notes between notebooks, cycling sort order, an optional date column in the notes list.
  • Inline editor built into the TUI, or your favorite external editor — auto-detected from $VISUAL/$EDITOR/the OS default, toggleable on the fly from the footer. Long lines wrap to the panel width instead of scrolling off-screen, and a /-menu (type / at the start of a line) drops in 21 ready-made blocks — headers, code, math, tables, checklists, links, images, callouts, a collapsible section, a YAML frontmatter skeleton, and more — fully customizable/overridable via [snippets.] in config.toml.
  • Editor conveniences, all independently toggleable: Ctrl+D stamps the date (and time), Ctrl+F find/replace, Ctrl+B/Ctrl+Alt+I bold/italic wrapping, bracket auto-pairing, list auto-continuation, move/duplicate line, multi-cursor, and a Ctrl+E spell-check pass that underlines misspellings and offers hunspell suggestions in a popup.
  • PREVIEW renders images, diagrams, and math, not just markdown: a `` image on its own line becomes real terminal art via chafa, `
…

sh yay -S shiki-bin # or: paru -S shiki-bin — prebuilt binary, fastest yay -S shiki # or: paru -S shiki — builds from source (needs cargo)


**Windows ([Scoop](https://scoop.sh)):**

```powershell
scoop bucket add sazardev https://github.com/sazardev/shiki
scoop install shiki

(or, without adding a bucket — a one-off install that scoop update won't track: scoop install https://raw.githubusercontent.com/sazardev/shiki/main/packaging/scoop/shiki.json)

Troubleshooting: scoop install shiki failing with Couldn't find manifest for 'shiki' means the sazardev bucket isn't added yet (run the scoop bucket add line above first) — or, if you'd added it a while ago, Scoop's local copy of it is stale; run scoop update first, then scoop install shiki again.

macOS (Homebrew):

bash
brew install sazardev/shiki/shiki

…

sh
cargo install shiki-cli

Or straight from a clone, if you want to build from a specific branch/commit instead:

bash
git clone https://github.com/sazardev/shiki
cd shiki
cargo install --path shiki-cli

…

sh
cargo install shiki-cli   # from crates.io — auto-upgrades if a newer version is published
bash
cd shiki                              # from a source clone
git pull
cargo install --path shiki-cli --force

If you installed via yay/paru, Scoop, or Homebrew, prefer their own update command (yay -Syu/scoop update shiki/brew upgrade shiki) instead of leader+U — the package manager owns that file and needs to stay in sync with what's actually on disk. AUR installs in particular install to /usr/bin, which leader+U can't write to without root anyway, so it fails with a permission error there rather than silently doing something surprising.

Verify

bash
shiki --version   # confirm the installed version
shiki doctor      # environment check: config, data dir, git, editor, terminal, notebooks

shiki doctor is safe to run any time, including right after install with no config yet — it reports what's missing rather than erroring out, and works even if a config file exists but is malformed (a normal shiki command would fail outright in that case; doctor diagnoses it).

Quick start

bash
shiki                       # launches the TUI — no args
shiki notebook create work  # or from the TUI: `a` while NOTEBOOKS is focused
shiki new "My first note" --notebook work
shiki daily                 # today's daily note

Inside the TUI, press ? for a searchable list of every keybinding (also doubles as a command palette — type to filter, Enter runs the highlighted action). Full keybinding tables, config schema, and theme list are in IDEA.md.

Development

See CLAUDE.md for the crate layout, build/lint commands, and architecture notes.

Contributing

Contributions are welcome — see CONTRIBUTING.md for the development setup, coding conventions, and pull request checklist. This project follows a Code of Conduct; please report security issues privately per SECURITY.md rather than opening a public issue.

License

MIT — free to use, modify, and redistribute.

Issues· 2 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustcligitmarkdownnote-taking

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具