Skip to content

Latest commit

 

History

History
394 lines (201 loc) · 19.3 KB

user-guide.md

File metadata and controls

394 lines (201 loc) · 19.3 KB

Flintmark User Manual

Project home · 简体中文 · Screenshot gallery

Install · Write and revise · Tables, code, and diagrams · Navigate a vault · Choose a theme · Use a selection with AI · Settings

Two processes exchange a timestamped message in a Flintmark note on Lamport’s logical clocks

Install

In VS Code 1.89 or later, search Extensions for Flintmark, or install it from a terminal. VS Code Marketplace

code --install-extension quboliu.flintmark

For a manual install in VS Code, VSCodium, or Cursor, download the VSIX and run Extensions: Install from VSIX.... Open a Markdown file and choose Flintmark: Switch to Live View to start reading. GitHub Releases

Make Live Preview your default

Open a .md or .markdown file. Run Flintmark: Set Live Preview as Default Markdown Editor to use this view the next time you open either file type. VS Code confirms the change in the corner.

Make Live Preview your default in Flintmark

Switch between Live and Code

Click Live in the status bar to see the Markdown behind the diagram. Click Code to return. The Command Palette also offers Switch to Code View and Switch to Live View under Flintmark.

Switch between Live and Code in Flintmark

Write and revise

Reveal Markdown at the cursor

Click the bold opening sentence. Its ** markers appear around the words you are editing. Move the caret to another paragraph and the sentence renders in bold again.

Reveal Markdown at the cursor in Flintmark

Read a trace as ordinary Markdown

The underlined Setext heading introduces a blockquote, a numbered list, a divider, and two bullets. The trace uses bold, italics, inline code, and strikethrough to mark the steps in a causal argument.

Read a trace as ordinary Markdown in Flintmark

Format a selection from the keyboard

Select a phrase and press Ctrl+B for bold, Ctrl+I for italic, Ctrl+E for inline code, Ctrl+Shift+X for strikethrough, or Ctrl+K for a link. On macOS use ⌘ in place of Ctrl. The screenshot shows the bold shortcut applied to the first bullet.

Format a selection from the keyboard in Flintmark

Read highlights, tags, and footnotes

Wrap a phrase in == to highlight it. Tags such as #causality stay easy to spot, and [^tie] marks a footnote whose definition appears below the paragraph.

Read highlights, tags, and footnotes in Flintmark

Reveal a drafting comment

Put a drafting reminder between %% markers. It drops out of the reading view and reappears when you place the caret inside it. Anyone with the Markdown file can read the comment.

Reveal a drafting comment in Flintmark

Paste a URL onto selected words

Select a phrase, copy a URL, and paste. Flintmark uses the phrase as the link label and inserts the URL as its destination. Here the destination is the DOI for Lamport’s paper.

Paste a URL onto selected words in Flintmark

Find and replace within Live Preview

Press Ctrl+F (⌘F on macOS) to search the open note. Use the next and previous controls to visit matches, or use the replacement field to change one match or all of them.

Find and replace within Live Preview in Flintmark

Read YAML as properties

The Raft note starts with YAML frontmatter. Properties presents its paper title, the authors, the reading date, and tags together. Lists and tags appear as individual chips.

Read YAML as properties in Flintmark

Edit the underlying YAML

Place the caret inside the frontmatter at the top of the note to edit its keys and values. Move back into the body to see the updated properties. Complex YAML stays available as source.

Edit the underlying YAML in Flintmark

Check tasks and track intermediate states

Click a checkbox to update the Markdown file. This reading list uses [ ] and [x], plus [/] for work in progress, [?] for a question, [>] for a forwarded task, and [-] for a canceled one.

Check tasks and track intermediate states in Flintmark

Fold a section under its heading

Click the fold marker beside a heading to hide its section. The next section stays in view. Click the marker again to expand it.

Fold a section under its heading in Flintmark

Save, undo, and redo the same file

Live Preview and the source editor share VS Code’s document and undo history. In this trace, changing one checklist entry updates both panes. Save, undo, and redo work from the preview and preserve the file’s LF or CRLF line endings.

Save, undo, and redo the same file in Flintmark

Keep editing a long note

Above 300,000 characters, Flintmark displays editable Markdown source in the Live tab. The repeated log entries in this example keep their literal ** and backtick markers.

Keep editing a long note in Flintmark

Tables, code, and diagrams

Distinguish a note, a tip, and a question

Start a blockquote with > [!note], > [!tip], or > [!question]. The three callouts below describe a local step, a message edge, and independent events.

Distinguish a note, a tip, and a question in Flintmark

Read a GFM table

The log table lines up indexes, terms, commands, and replica counts. Cells preserve inline formatting, including the bold index and highlighted majority in the third data row.

Read a GFM table in Flintmark

Edit a table cell in place

Click a cell to reveal its Markdown. Enter or Tab commits the change, as does leaving the cell. Escape restores the previous value.

Edit a table cell in place in Flintmark

Highlight and copy fenced code

Give a fenced block a language name such as python for syntax highlighting. Copy puts the block’s contents on the clipboard, ready to run or paste elsewhere.

Highlight and copy fenced code in Flintmark

Typeset inline and display equations

Use $…$ inside a sentence or $$…$$ for a displayed equation. KaTeX sets the clock condition and the worked receive rule on separate lines.

Typeset inline and display equations in Flintmark

Draw a sequence with Mermaid

A mermaid fence renders the message between processes P and Q. Edit the fence to change a participant, a label, or the order of messages.

Draw a sequence with Mermaid in Flintmark

Keep an SVG figure inside the note

An inline SVG block draws the tie-break between (3, P) and (3, Q). Flintmark sanitizes the markup before displaying the figure.

Keep an SVG figure inside the note in Flintmark

Embed a figure by path or name

Use a standard Markdown image path, as in the opening clock diagram, or a vault filename. ![[diagram.png|480]] sets the width to 480 pixels. ![[diagram.png|480x240]] sets both dimensions. The example resolves the log diagram from a subfolder.

Embed a figure by path or name in Flintmark

Paste an image from the clipboard

Paste an image into a note. Flintmark saves an attachment beside the Markdown file and inserts a ![[…]] embed at the caret. The new file is visible in Explorer.

Paste an image from the clipboard in Flintmark

Drop an image at a specific line

Drag an image file onto the paragraph where it belongs. Explorer shows the saved attachment beside the note. If the name is taken, Flintmark chooses a new filename.

Drop an image at a specific line in Flintmark

Navigate a vault

Jump to a heading from Outline

Open Flintmark’s F in the activity bar. Outline mirrors the headings in the current note. Choose Reading checklist to move the caret to that section. Todo and Backlinks sit below the outline.

Jump to a heading from Outline in Flintmark

Go straight to an unfinished task

Todo lists tasks in file order, including their markers and line numbers. Clicking the entry about applying z takes you to the exact task so you can revise or check it.

Go straight to an unfinished task in Flintmark

Follow a backlink to its source note

Backlinks lists notes that link to the open file. Follow Logical Clocks from the Raft note, and the panel updates to show who links to Logical Clocks.

Follow a backlink to its source note in Flintmark

Refresh one sidebar view

Outline and Todo follow document edits. Backlinks follows links in the workspace. For a manual refresh, use the view’s refresh arrow or the Command Palette entries Refresh Outline, Refresh Todo, and Refresh Backlinks.

Refresh one sidebar view in Flintmark

Find a heading in the source editor

In Code view, use Go to Symbol in Editor (Ctrl+Shift+O, or ⌘⇧O on macOS). Select a heading by name to jump there. Headings also feed VS Code’s native Outline and breadcrumbs.

Find a heading in the source editor in Flintmark

Complete a note name

Open a folder of notes as your workspace and type [[. Choose a note from the suggestions. You can give it a label with [[Raft Log|replicated log]]. Links that include a heading or block fragment resolve the destination note.

Complete a note name in Flintmark

Complete a heading in the current note

Type [[# to list headings from the open note, then choose the one you want to insert. For an immediate jump while writing, pick the heading in Outline.

Complete a heading in the current note in Flintmark

Reuse an existing tag

Start a tag such as #c. Flintmark offers matching tags from the workspace, so the same spelling carries across your notes. You can keep editing during the initial scan, and saving a changed note updates its index entry.

Reuse an existing tag in Flintmark

Open a linked note or the original paper

![[Raft Log|the Raft reading note]] makes a clickable note chip. Ordinary Markdown links can open a relative note path or an external URL, and angle-bracket autolinks work for the paper’s DOI.

Open a linked note or the original paper in Flintmark

Create a note from a missing link

Click an unresolved link such as [[Log compaction]]. Choose Create note to write a Markdown file beside the current note and open it.

Create a note from a missing link in Flintmark

Choose a theme

Choose Things or Catppuccin

Run Flintmark: Select Theme while a note is open. The picker marks the current choice. Both themes follow the editor’s light or dark color mode.

Choose Things or Catppuccin in Flintmark

Read in Things after dark

Things is the default theme. In its dark variant, the heading, quote, and list keep their hierarchy against a dark page. The opening screenshot shows its light variant.

Read in Things after dark in Flintmark

Read the same note in Latte

Choose Catppuccin with a light editor theme to use Latte. Its warmer accents distinguish the message diagram and the callout in the same reading note.

Read the same note in Latte in Flintmark

Read the same note in Mocha

Switch the editor to a dark theme and Catppuccin uses Mocha. The same note and artwork now sit against a dark reading surface.

Read the same note in Mocha in Flintmark

Read a dense figure in the dark theme

The second sample lays three Raft replicas out by index. The dashed line follows the third entry. The leader and one follower have stored that entry in the leader’s current term.

Read a dense figure in the dark theme in Flintmark

Use a selection with AI

Flintmark connects Live Preview to the AI tools already in your editor, including Copilot in VS Code and the native chat or inline editor in Cursor. The examples below use VS Code.

Select a passage for AI

Select text in Live Preview to reveal Edit and Add to Chat. Flintmark passes the exact range to the host editor so its own AI tools can use the selection.

Select a passage for AI in Flintmark

Edit the selected source passage

Choose Edit or run Flintmark: Edit Selection with AI (bridge to source). Here the source opens beside the note with the original passage selected. The trigger setting controls whether the host’s inline editor starts automatically.

Edit the selected source passage in Flintmark

Attach the selection to a chat draft

Choose Add to Chat or Flintmark: Add Selection to AI Chat. In VS Code, the composer shows a file-and-line attachment for the selected receive rule. Compose and send the prompt when you are ready.

Attach the selection to a chat draft in Flintmark

Return to the rendered note

Choose Return to Live Preview to reopen the rendered note. Accept AI Edit & Return to Live Preview first asks the host to accept its pending edit when the host provides that command.

Return to the rendered note in Flintmark

Inspect the host’s AI commands

Run Flintmark: Dump AI Commands (debug) to list the detected host and its edit, chat, and accept commands in Flintmark AI. Reopen that Output channel with Flintmark: Show AI Log.

Inspect the host’s AI commands in Flintmark

Settings

Open Settings and search for @ext:quboliu.flintmark to see every Flintmark control. To go straight to one setting, search for its ID with @id:, as shown below. The settings are on the right and a live note stays open on the left.

Theme

ofm.theme · things is the default. Select catppuccin to use Latte in light mode and Mocha in dark mode. The theme picker changes this same setting.

VS Code Settings showing ofm.theme beside a live reading note

Prose font

ofm.fontFamily · Set a CSS font-family list for headings and body text. An empty field follows the theme. The screenshots use the installed HYKongShanKai family (Hanyi Kongshan Kai W).

VS Code Settings showing ofm.fontFamily beside a live reading note

Prose size

ofm.fontSize · Set a size from 8 to 72 pixels. The default 0 follows the editor font size plus 2 px. The reading notes in this guide use 21.

VS Code Settings showing ofm.fontSize beside a live reading note

Reading width

ofm.lineWidth · The default 0 fills the pane with fixed side margins. A value from 20 to 240 caps the width of a centered column in rem. The examples use 56.

VS Code Settings showing ofm.lineWidth beside a live reading note

Code font

ofm.monospaceFontFamily · Set a font-family list for inline code, fenced blocks, and frontmatter. An empty field inherits the VS Code editor font. This control is independent of the prose font.

VS Code Settings showing ofm.monospaceFontFamily beside a live reading note

Folders to skip

ofm.workspaceIndex.exclude · Add a workspace-relative glob such as **/generated/** to skip a directory when indexing notes and images. The defaults cover common cache, build, and dependency folders. Enabled entries from files.watcherExclude and search.exclude also apply.

VS Code Settings showing ofm.workspaceIndex.exclude beside a live reading note

Start an inline edit

ofm.ai.trigger · auto (default) tries the host’s inline AI command after opening the source selection. Choose manual when you want to invoke the editor’s AI yourself.

VS Code Settings showing ofm.ai.trigger beside a live reading note

Source editor position

ofm.ai.sourceLayout · replace (default) opens the selected source in the current group. Choose beside to keep Live Preview visible next to the source.

VS Code Settings showing ofm.ai.sourceLayout beside a live reading note

How a selection reaches chat

ofm.ai.chatBridge · split (default) uses a temporary side editor to attach the selection. inplace briefly switches the current tab to source and returns it to Live Preview.

VS Code Settings showing ofm.ai.chatBridge beside a live reading note

Override the inline AI command

ofm.ai.triggerCommand · Leave this empty to detect the host’s edit command. Enter a command ID registered by your editor to pick it explicitly. One VS Code example is inlineChat.start.

VS Code Settings showing ofm.ai.triggerCommand beside a live reading note

Override the chat command

ofm.ai.chatCommand · Leave this empty for automatic host detection, or enter the registered command ID that accepts a selection in your chat client. VS Code can use workbench.action.chat.attachSelection.

VS Code Settings showing ofm.ai.chatCommand beside a live reading note

Trace AI handoffs

ofm.ai.debugLog · Off by default. Enable this temporarily to see how a range reached the source editor and which host command ran. Open Flintmark: Show AI Log to read the trace.

VS Code Settings showing ofm.ai.debugLog beside a live reading note

Build and test

CI uses Node.js 20. In a checkout of the repository, install dependencies, build the extension, run the unit tests, and launch an Extension Development Host.

npm ci
npm run compile
npm run test:unit
code --new-window --extensionDevelopmentPath="$PWD" .

The release suite checks saved file contents in VS Code, VSCodium, and Cursor and exercises a workspace with 20,000 notes and 4,200 images. Release tests · Changelog

Credits and license

Flintmark uses CodeMirror 6, Lezer, KaTeX, and Mermaid. Stephan Ango designed Things, Colin Eckert created its Obsidian port, and the Catppuccin palettes come from Catppuccin for Obsidian. Third-party notices

Flintmark is an independent project. Obsidian is a trademark of Dynalist Inc. © quboliu · MIT