The command palette in Mindmap:
- one shortcut for everything: press ⌘K to see what you can do, or start typing to find any action, node or project
- it changes with where you are: on a project you get canvas actions, on a node you get that node's actions first
- full-text search across titles and documents: separate indexes for each, run in parallel, with title matches ranked first and nodes from the project you're in ahead of the rest
- results don't flicker: each hit comes with a snippet cut around the match, and the last results stay on screen while the next ones load
- works fully from the keyboard: arrow keys to move, enter to run, esc to close, no mouse needed
The command palette in Mindmap:
- one shortcut for everything: press ⌘K to see what you can do, or start typing to find any action, node or project
- it changes with where you are: on a project you get canvas actions, on a node you get that node's actions first
- full-text search across titles and documents: separate indexes for each, run in parallel, with title matches ranked first and nodes from the project you're in ahead of the rest
- results don't flicker: each hit comes with a snippet cut around the match, and the last results stay on screen while the next ones load
- works fully from the keyboard: arrow keys to move, enter to run, esc to close, no mouse needed
AI assisted edits in Mindmap:
- it can suggest both content and structure: edits to a node's document, new branches under it, or both in one suggestion. branches show up as ghost nodes on the canvas before you accept
- suggestions stream in so the wait doesn't feel stale: we parse the half-written tool call as it arrives, so the reason, change count and branch titles fill in while the model is still writing
- edits are modular: the model works on numbered blocks and only sends the ones that change, so each change can be skipped on its own and the rest is accepted in one save
- word-level highlights: small rewrites highlight just the words that changed, using invisible Unicode markers that pass through the normal markdown renderer. bigger rewrites fall back to whole lines
AI assisted edits in Mindmap:
- it can suggest both content and structure: edits to a node's document, new branches under it, or both in one suggestion. branches show up as ghost nodes on the canvas before you accept
- suggestions stream in so the wait doesn't feel stale: we parse the half-written tool call as it arrives, so the reason, change count and branch titles fill in while the model is still writing
- edits are modular: the model works on numbered blocks and only sends the ones that change, so each change can be skipped on its own and the rest is accepted in one save
- word-level highlights: small rewrites highlight just the words that changed, using invisible Unicode markers that pass through the normal markdown renderer. bigger rewrites fall back to whole lines
Chat scrolling is easy to get mostly right and hard to make feel solid. The trick that made it stable in Mindmap: container queries.
- `container-type: size` on the chat, `min-height: 100cqh` on the current turn. That's all it takes for your message to land at the top when you scroll to the bottom. No measuring heights, no recalculating on resize. The browser does the math
- because that space is already there, a short reply never changes the scroll height, so there's nothing to correct and nothing to jitter. The box keeps its size after the reply ends too, so nothing jumps
- the only state in JS is one flag: are you at the bottom or not. A ResizeObserver keeps the bottom in view while you are. Window resizes and a growing composer go through the same path
Chat scrolling is easy to get mostly right and hard to make feel solid. The trick that made it stable in Mindmap: container queries.
- `container-type: size` on the chat, `min-height: 100cqh` on the current turn. That's all it takes for your message to land at the top when you scroll to the bottom. No measuring heights, no recalculating on resize. The browser does the math
- because that space is already there, a short reply never changes the scroll height, so there's nothing to correct and nothing to jitter. The box keeps its size after the reply ends too, so nothing jumps
- the only state in JS is one flag: are you at the bottom or not. A ResizeObserver keeps the bottom in view while you are. Window resizes and a growing composer go through the same path
Spent way too long on tabs in Mindmap. Here are some of the things that went in:
- tabs are SSR'd, so they're just there when the page loads. Nothing pops in
- you can click a tab before the page has hydrated and it still works. A tiny inline script remembers the click and React picks it up once it's ready
- the active tab and the panel are one SVG shape, so switching tabs feels like the shape is sliding over
- hover a tab and you get a preview of the project. That same query warms the cache, so by the time you click, the canvas is already loaded
- drag to reorder and the tab snaps into place, with the shape moving right along with it
- closing, pinning, renaming, reordering are optimistic updates: instant, with the server catching up behind
- recover a closed tab with ⌥⇧T
- once you've got a lot of tabs open, ⌥K gives you a searchable list of all of them
- shortcuts live on ⌥ because the browser already owns ⌘T and ⌘W
@AxialisSoftware Yes. The tabs use Base UI's PreviewCard component, which opens on keyboard focus too, with the same delay as hover, and it fills the same cache. Next's Link also prefetches pages when tabs scroll into view, so keyboard switching is just as quick.
More tab details that didn't fit in the first post:
- tabs shrink to fit as you open more, and adjust when the window or the side panel changes size. Keeping them in place while the panel slides open.
- double-click a tab to rename it
- double-click the empty space in the strip to open a new tab, like a browser
- every tab remembers where you were: canvas or chat, the open panel. Close it, reopen it, you're back in the same spot
work for @rndr_realm