Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

Show HN: Atomic Editor – Obsidian-style live preview for CodeMirror 6 (https://kenforthewin.github.io)

67 points by kenforthewin 13 days ago | 19 comments | View on ycombinator

segphault 13 days ago |

I've wanted to see a good, production-quality open source take on this editing paradigm for a long time and your implementation appears to get a lot of things right. I took a crack at this myself a few years ago but never got around to really getting it over the line: https://github.com/segphault/codemirror-rich-markdoc

Your wysiwyg support for tables is very nice, but I couldn't quite figure out how to delete a row. The checkboxes are also a little fiddly, it would be nice if the checkbox turned into editable text when the cursor moves next to it. Does Atomic Editor work with vim bindings via replit's CM6 vim plugin?

Props for building this and sharing it, I hope you stick with it.

chaoxu 13 days ago |

I'm testing it and seems to be very broken, typing things around and things jumps everywhere.

I was trying to create something like this too, because I need something that also work for mathematical writing. Let me push a version on github and update, it fixes a lot of issues.

Unfortunately it works on my own version of markdown, which is a subset of pandoc markdown, but I think one can get claude to update the parser to work for other things.

undefined 13 days ago |

undefined

smartrich 12 days ago |

How difficult was it to build the live preview synchronization? Was keeping cursor position and scroll position aligned between the editor and preview the hardest part, or were there bigger technical challenges?

pbjerkeseth 13 days ago |

Nice work! It seems like selection highlighting(?) doesn't work but the interaction feels good otherwise.

I'm curious when I see things more geared toward prose using CodeMirror instead of ProseMirror. Any comment on that decision?

benatkin 13 days ago |

That looks pretty good, but it isn't quite there yet, for me. If you try to delete the opening fence, the closing fence turns into a closing fence, and the abstraction leaks in tables.

peterm4 10 days ago |

This is awesome, and exactly what I've been looking for recently.

Noticed the demo won't let me add spaces in table cells however.

alsetmusic 12 days ago |

It's pretty nice. I was impressed with the handling of tables. Good fit-and-finish kinda of project. Congrats on building a respectable, nice tool.

schonfinkel 11 days ago |

I regret to inform you that, despite your best intentions, you have built an Emacs + Orgmode.

Alex_toani 12 days ago |

Perfect like this idea.

k43s85 12 days ago |

94439653

k43s85 12 days ago |

Ok 52itf orchid room

bdcravens 13 days ago |

Dreamweaver lives!

lavaman131 12 days ago |

[flagged]