zk

zk-orgGPL-3.0活跃维护

用纯文本管理笔记的命令行助手,支持 Zettelkasten 卡片盒与 wiki 式双向链接,帮你在终端里快速检索、整理和串联知识。

A plain text note-taking assistant

v0.15.7发布于 2026-10-15 12:42 UTC2,867star199fork同步于 2026-11-10 17:44 UTC

怎么上手

由 README 提炼,执行前请确认
brew install zk
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

命令行纯文本笔记助手,帮你维护 Zettelkasten 或个人 wiki

用纯文本管理笔记的命令行助手,支持 Zettelkasten 卡片盒与 wiki 式双向链接,帮你在终端里快速检索、整理和串联知识。

核心能力

  • 从模板快速创建新笔记
  • 按标签、链接和提及进行高级搜索过滤
  • 通过 LSP 集成任意编辑器,另有 Neovim、VS Code、Emacs 插件
  • 借助 fzf 提供交互式笔记浏览器
  • 支持 Git 风格命令别名与命名过滤器

容易踩的坑

预编译二进制未签名,Windows Defender 等安全工具曾误报,Windows 上建议自行编译;zk 不是笔记编辑器,需配合自己的编辑器使用;它也不负责把笔记发布到网页

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.15.7
  1. v0.15.70.15.7最新正式版2026-10-15 · 2026-10-15 12:42 UTC

    Fixed

    • Note ordering requested with --sort is kept by fzf while filtering interactively (by @paoValle, #783)
    • Resolve links with a leading slash against the notebook root, falling back to the filesystem for absolute paths (by @zmre, #745)
    • NoteIndex.Commit now passes a complete NoteIndex to its transaction instead of one missing the notebook path and note extension (by @ehsash, #750)

    Changed

    • Tag filtering is now case-insensitive (by @tuxikus, #770)
    • Use the working directory as the target of the edit --interactive new note fzf binding (by @skbolton, #768)
  2. v0.15.60.15.62026-07-26 · 2026-07-26 15:07 UTC
    查看更新说明

    Added

    • Parse links to notes in frontmatter (by @tjex, #710)
    • Set filters for lsp completion items from the config (by @wrvsrx, #736)
    • Set a note's modification time in frontmatter and allow for custom key naming for both creation and modification keys (by @BennoLossin, #531)

    Fixed

    • Indexing made significantly more performant (by @Keluaa, #735)
    • Support filtering by date and time with "<date> <time>" instead of <date>T<time> only (by @tjex, #743)
    • Exclude globs now prune matching directories from indexing, improving speed of indexing (by @ehsash, #741)
  3. v0.15.50.15.52026-06-08 · 2026-06-08 11:15 UTC
    查看更新说明

    Added

    • List, edit and filter for broken links with --broken-links (by @WhyNotHugo, #708)
    • Update strftime package, supporting %g and %G formats in the {{format-date}} helper (by @tjex, #723)
    • Option to append links to selected text, instead of replacing (by @tjex, #724)

    Fixed

    • Paths with ~ and env variables no longer error when passed to --notebook-dir and --working-dir (by @tjex, #732)
    • Guard LSP against unnecessary erroring on missing textDocument/definition capabilities (by @SAY-5, #718)
  4. v0.15.40.15.42026-05-04 · 2026-05-04 12:36 UTC
    查看更新说明

    Small release to fix a (juicy) bug introduced in 0.15.3

    • "jump to definition" follows wrong link (by @WhyNotHugo, 703)
  5. v0.15.30.15.32026-04-27 · 2026-04-27 14:16 UTC
    查看更新说明

    Added

    • zk config --list <object> (by @andrebauer, 484)

    Fixed

    • Ignore commented links for LSP diagnostics. Use an AST to parse files, fixing other similar edge cases. (by @WhyNotHugo, 638)
    • Links in markdown footnotes now included in :ZkLinks (by @WhyNotHugo, 639)
    • Indexing notebook now 35% and 74% faster for full and incremental indexing respectively (by @WhyNotHugo, 642)
    • Stop crashing lsp server when server received textDocument/completion request with out of range parameters. (by @virusbb001, 667)
    • lsp: Provide completion after [[ on lines with multi-byte characters (by @virusbb001, 671)
    • Prevent crash in LookForward when the parameters is out of characters number. (by @virusbb001, 673)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Description

    zk is a command-line tool helping you to maintain a plain text Zettelkasten or personal wiki.

    Looking for a quick usage example?

    Or want to see it in action? Checkout Shivan's video, Note-taking System ALL Programmers Should Consider.

    Join us on Matrix for general, support and development discussion: #zk-org:pub.solar.

    Highlights

    See the changelog for the list of upcoming features waiting to be released.

    What zk is not

    • A note editor.
    • A tool to serve your notes on the web – for this, there are some static site solutions.

    Install

    Check out the latest release for pre-built binaries for macOS, Linux and Windows.

    [!WARNING] The pre-built binaries are not code-signed. In the past Windows Defender and other security tools have flagged some versions of the Windows binary as malicious. Building zk yourself is currently the recommended workaround on Windows — see Build from scratch. See #740 for details.

    Homebrew

    brew install zk
    

    Or, if you want the latest state of main:

    brew install --HEAD zk
    

    Nix

    zk is available in nixpkgs and has a Home Manager module.

    If you want to run zk without permanently installing it:

    nix run nixpkgs#zk
    

    Or, if you want to create an ephemeral shell with zk available:

    nix shell nixpkgs#zk
    

    To permanently install zk on NixOS at the system level, include nixpkgs.zk in environment.systemPackages in your system configuration (/etc/nixos/configuration.nix by default):

    environment.systemPackages = [
      # Your other packages here
      nixpkgs.zk
    ];
    
    

    If you are using Home Manager, instead of installing for all users on the system, you can permanently install and configure zk just for your user via the Home Manager module. Add this to your Home Manager configuration:

    programs.zk.enable = true;
    
    # Modify `${XDG_CONFIG_HOME}/zk/config.toml` through this attr
    programs.zk.settings = {
      # Add your own configuration settings for zk here
    };
    

    Alpine Linux

    zk is currently available in the testing repositories:

    apk add zk
    

    Arch Linux

    You can install the zk package from the official repos.

    sudo pacman -S zk
    

    MacPorts

    sudo port install zk
    

    Build from scratch

    Make sure you have a working Go 1.21+ installation, then clone the repository:

    git clone https://github.com/zk-org/zk.git
    cd zk
    make build
    

    The latest state of main can be considered the stable pre-release state. To use the absolute latest state (bugs to be expected) and to contribute:

    git checkout dev
    make build
    
    On macOS / Linux
    $ make
    $ ./zk -h
    

    Contributing

    We warmly welcome issues, PRs and discussions.

    Be sure when contributing to branch from dev, not main.

    Here you can read some useful info for contributing to zk.

    Related projects