You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release v1.0.2 — list/todo Enter fixes; wiki-link cursor-reveal
Markdown list Enter behavior had two distinct bugs that made bullets and todos
feel broken in note files with spacing:
1. Empty markers didn't collapse on the first Enter. markdown() defaults to
addKeymap:true, injecting its own markdownKeymap at Prec.high — that
high-prec copy pre-empted our ordered keymap, so taskEnterKeymap never ran
(empty `- [ ]` never cleared) and bullets used the default tight->loose
conversion (insert a blank line, collapse only on the 2nd Enter). Fix: pass
addKeymap:false and own the binding via
insertNewlineContinueMarkupCommand({ nonTightLists: false }), bound after
taskEnterKeymap so tasks win on `- [ ]` lines.
2. Continuing a bullet inside a "loose" list (items separated by blank lines)
re-inserted a blank line every Enter — self-perpetuating, since one blank
makes the list loose. CM's nonTightList branch isn't reachable by config.
New listContinueKeymap continues a non-empty bullet/ordered item tightly
(copies its own indent + marker, no blank line); empty items still fall
through to collapse. Tasks were already tight via taskEnterKeymap.
Also: taskEnterKeymap now handles Enter mid-text in a todo — splitting carries
the after-cursor text onto a new `- [ ] ` line instead of dropping the checkbox.
wikiLinks: reveal raw [[name]] when the cursor/selection touches the link, so
it can be edited (same convention as markdownLinks).
Verified via CDP against real keypresses: plain/star bullets, nested, ordered,
tasks, loose lists, mid-text split — all collapse/continue correctly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>