Repository navigation
Releases
1.18.24
Full Changelog: https://github.com/salt-bak# Release Summary — v1.18.24
Fixes
1.18.24 — Root node selectable; Tab creates branches under it
Problem: The root node is the note filename — it has no corresponding line in the document, so srcOf() returned no line number. Clicking it set primaryLine = -1 (i.e. "deselected"), making writable false, so Tab never even reached matchAction. From the user's perspective, "pressing Tab on the root does nothing."
Fix:
- Give the center topic a pseudo line number
ROOT_LINE(-2): the selection set can record it andpaintSelectioncan highlight it, while every action requiringprimary >= 0(edit text, delete, indent, add sibling) is naturally blocked — editing = renaming the file, deleting = wiping the whole document. - Only
newChildis allowed in the action table.ActionStategains anonRootflag so this criterion shares the same source as the phase criterion. - Write-back rules (
edit/create.tsplanCreateRoot):- Has heading system → write
# new node(plain top-level text would fall into the previous section, attaching to the wrong parent). - No headings / pure indentation → write plain top-level text.
- Insert after the last non-empty line (= after the root's last branch, matching XMind).
- Refuse if the end is inside an unclosed fence, otherwise the new heading would be stored as code.
- Empty document gives
insertAfterLine = -1; the service clamps the anchor to 0, otherwise the writer throws ongetLine(-1).
- Has heading system → write
- Ctrl+V on the root is no longer silently ignored (passed through to
matchAction, with a hint shown inrunAction).
Verified on a real note (no headings + 12-line frontmatter): root has no src, plan at=44 / top-level "new node", read-back depth=1, appended to the end of the root's child list.
Tests: Added T31 (11 groups, including real insert + real parse depth read-back) and the center-topic criterion in T29.
1.18.23 — No zoom jump on first gesture notch; zero-delta events keep the gesture alive
A standalone Playwright + real d3-zoom probe (tmp/wheelDiag.ts) confirmed the displacement chain itself is precise (0.37px input → 0.37px movement, zero error). The "not tracking the finger" issue came from three detection flaws:
- First-notch misjudgment: Axis locking flattens the touchpad's
deltaXto exactly 0, so the most reliable signal ("two fingers always have a horizontal component") is unavailable on the first notch of a fast swipe — leaving only magnitude heuristics → always judged as a mouse → a one-shot 1.149× zoom jump that persists after the gesture ends (k 2 → 2.297).
Fix:WheelGesture.takeFirstNotch()marks "this notch is a guess"; the view suspends the first-notch zoom for one frame. If the second notch overturns the gesture, the whole thing is discarded (no visible jump); if confirmed, it's applied as-is. - Misjudged zoom not rolled back: If the gesture was reclassified as pan within the same frame, the already-queued zoom still landed (
zoomLeaked1.1487). Fix: re-check againstwheelGesture.currenton flush. - Zero-delta events cutting the gesture: Touchpads floor sub-1px movement to 0; a slow drag can contain dozens of all-zero-delta events. Not refreshing
last→ afterGESTURE_GAPthe device is re-guessed, and the same gesture jumps from pan back to zoom mid-way. Fix: renew the timestamp when a gesture exists (don't renew when idle, otherwise the first notch becomes "not fresh and no conclusion" and is treated as pan, breaking wheel zoom entirely).
Also: Same-frame zoom+pan now uses the post-zoom k (a 10px pan was going 11.487px, +14.87%).
Tests: Added T30 assertions 16/17/18. Probe regression: panPortion 11.487→10, zoomLeaked 1.1487→1, kindAfterZeroRun zoom→pan; sub-pixel/axis-lock sequences still zero error.
Known limitation: Single-axis behavior is locked at the OS layer by Windows Precision Touchpad (rails); the raw two-finger trajectory isn't accessible on the web. Not fixable. Middle/right-button drag and Shift are documented workarounds in the help panel.
1.18.22 — Wheel handled in capture phase; middle-button pan added
Investigation into "touchpad can only scroll one axis first": the detection layer and onWheel handle both axes throughout (probe trackpadDiagonal: dx -7 / dy -11 / bothAxes true) — the problem occurs before events arrive.
- Moved the wheel listener to the capture phase:
.table-wrapper/ embed inside block cards are their own scroll containers; by the time events reached the bubble phase, one axis's delta had already been consumed, leaving only single-axis movement. - Added
touch-action: noneto.obmind-canvas(without it, touchscreens lock to the gesture's initial axis). applyZoomFilternow lets throughbutton === 1: middle-button drag pan (three-finger tap on touchpads) uses pointer events, completely bypassing Windows' touchpad gesture recognition.- Added a "middle-button drag" line to the help panel.
- Probe: added
middleAllowedto filter, a diagonal dual-axis case, and reset the gesture beforeviaSvg. - Memory: deployment directory corrected to
plugins/obmind-map(= id); release section moved to MARKMAP-NOTES.
Summary: v1.18.24 makes the center topic fully interactive (selectable + Tab branches, with safe write-back rules), v1.18.23 eliminates spurious zoom jumps on touchpads and keeps gestures stable across zero-delta events, and v1.18.22 fixes single-axis scrolling and adds middle-button panning.ed-universe/obmind/compare/1.18.21...1.18.24
1.18.21
First public release.
Turns the outline of the active note into an interactive, XMind-style mind map, and writes your edits back to the same Markdown file. There is no separate map file to keep in sync.
Highlights
- The map is the note. Rename, add child/sibling, outdent, delete and drag-to-reparent all write back to the Markdown source. Anchor lines are verified before writing; on mismatch the write is aborted instead of corrupting the file.
- Drag to restructure. Drop a node onto another to re-parent it, or multi-select and drag a whole subtree.
- Blocks are nodes too. Code fences, math, tables and quotes hang under the nearest heading as read-only pills; callouts become containers.
- Note from node. Ctrl+N creates a note, links it with a [[wikilink]] and jumps there, optionally from a template.
- Breadcrumb + pin. Walk into linked notes from the map, or pin the map so notes keep opening normally while the map stays put.
- Wheel that fits the device. A mouse wheel zooms notch by notch, a trackpad two-finger gesture pans and pinch zooms — decided per gesture rather than from a hard-coded pixel constant.
- Five themes, follow-appearance mode, and SVG export with styles inlined.
- No network, no telemetry.
Install
Copy main.js, manifest.json and styles.css into /.obsidian/plugins/obmind-map/, restart Obsidian, then enable Weaver Mindmap in Settings → Community plugins.
Compatibility - Obsidian 1.7.2 or newer.
- Loads on mobile, but the gestures are designed for a desktop.
License
GPL-3.0-or-later. Forks must stay open source under the same license.