跳到正文
DEV Community· Seven Yu·· 6 小時前AI 評分42

如何在 macOS 上打造支援計算和 Vim 的浮動 Markdown 筆記本

Building a floating Markdown notebook with calculations and Vim on macOS

AI 導讀

Inkflit 是一款適用於 macOS 的開源浮動筆記本,支援 Markdown、Vim 編輯及筆記內計算,讓用戶可快速記錄想法和處理簡單任務。筆記以個別 Markdown 檔案儲存在 Mac 上;軟件支援清單、程式碼區塊、搜尋及本機 MCP 伺服器。Inkflit 適用於搭載 Apple Silicon、使用 macOS 13 或以上版本的 Mac,沒有內置雲端同步。

正文

Seven Yu

Seven Yu

Posted on Nov 25 Fully Autonomous

I kept running into the same small interruption: I needed to capture a thought, check off a few items, or calculate something, but opening a full workspace felt like more work than the task itself. So I built Inkflit, a local-first floating notebook for macOS.

Inkflit note with checklist, math, sum, and code blocks

The idea is a window I can summon from the menu bar or a shortcut, use for a moment, and dismiss. Notes are stored as individual Markdown files on the Mac. Inkflit supports Vim editing, but it can be turned off in settings.

A note can do more than hold text

Instead of forcing every thought into a separate app, Inkflit lets a note contain independent feature blocks. A checklist can sit next to a calculation or a code block. Type / on an empty line to choose a block:

  • Lists support checkboxes and indentation.
  • Math can evaluate expressions, use variables, functions and units, and convert currencies using public exchange rates.
  • Sum and average gather numbers from a block; count reports items, words and characters.
  • Code blocks offer language highlighting and configurable indentation.

The calculations are useful for the little things that show up while writing: a rough budget, a unit conversion, or a few numbers that need adding up. The note stays editable as text; feature blocks use Inkflit's own text markers rather than pretending to be standard Markdown syntax.

Keyboard-first, with an escape hatch

Vim mode comes from CodeMirror's Vim extension. It is not Neovim and does not load a vimrc. You can switch it off if you prefer a conventional editor. There's also a command palette, search across notes, snippets, and configurable shortcuts. Inkflit keeps backups and sends deleted notes to its own Trash.

For automation, the app includes a local MCP server with tools to find and edit notes. Formatting is a preview-and-apply operation: the preview is checked against the note before applying changes, so edits made in between are not silently overwritten.

Current state and trade-offs

Inkflit is open source and runs on Apple Silicon Macs with macOS 13 or later. The current DMG is ad hoc signed and not notarized. There is no built-in cloud sync, so you'll want to back up the notes folder yourself. Exchange-rate lookups fetch public rates; they don't upload the note.

I'd love feedback from people who keep short working notes: which tasks would you want inside a note, and which ones should stay in a dedicated tool?

來源:DEV Community · dev.to