News for hackers. Stuff that matters.
Re:CodeMirror 6.0 Stable Release by ericax on Wednesday June 08, 2022 @12:44PM (#31670048)
Obsidian developers here! (https://obsidian.md/)

The new editor in Obsidian was made possible by CodeMirror 6, and it has been powering both the Live Preview mode (like Typora) and the source mode in Obsidian ever since.

It can be a bit overwhelming to get into first, but as we experimented more with it, we found it to be extremely extensible and powerful. It's also highly performant for large documents. Another major reason we chose CM 6 is that it's also one of the only code editors that work decently on mobile.

While developing the new editor, Marijn was also amazingly responsive in investigating and fixing all the big and little things we ran into, even relatively niche issues like IME input bugs.

If you find CM 6 useful, consider what you can to support the project! Funding link is here: https://marijnhaverbeke.nl/fund/

Re:CodeMirror 6.0 Stable Release by mmgutz on Wednesday June 08, 2022 @10:12PM (#31676887)
Why wasn't ProseMirror a fit for Obsidian? Seems like that would be better for structured documents.
Re:CodeMirror 6.0 Stable Release by scambier on Thursday June 09, 2022 @01:21PM (#31684078)
For a good portion of its users, an important feature of Obsidian is the use of flat Markdown files.
Re:CodeMirror 6.0 Stable Release by mmgutz on Friday June 10, 2022 @08:04PM (#31700680)
I'm inquiring about actual implementation not Markdown. Markdown -> AST -> CodeMirror vs Markdown -> AST -> ProseMirror.
Re:CodeMirror 6.0 Stable Release by ilrwbwrkhv on Wednesday June 08, 2022 @06:23PM (#31675164)
What does obsidian use for the graph view plugin? Is it cytoscape? It is very smooth and easy to use.
Re:CodeMirror 6.0 Stable Release by ericax on Wednesday June 08, 2022 @08:27PM (#31676244)
We use PixiJS!

We used to use d3-force for force simulation, but then we rewrote it in wasm ourselves for performance.

Re:CodeMirror 6.0 Stable Release by ilrwbwrkhv on Thursday June 09, 2022 @03:28AM (#31678489)
Huh Pixi JS. I used to be a contributor many moons back. It's a great little library. Would love to read about challenges with d3 force and your wasm approach if obsidian has a tech blog.