codemirror-emacs
y-codemirror
codemirror-emacs | y-codemirror | |
---|---|---|
1 | 1 | |
15 | 80 | |
- | - | |
2.4 | 0.0 | |
7 months ago | over 1 year ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
codemirror-emacs
-
Ace, CodeMirror, and Monaco: A Comparison of the Code Editors You Use in Browser
Hey!
> How does it work?
It's a web application, so a lot of JavaScript.
> I tried the emacs keybindings on replit... what a joke
It needs some more love, the work is done out in the open, feel free to open issues. https://github.com/replit/codemirror-emacs
For what it's worth, we're not trying to recreate your emacs or VIM experience, just trying to port as many keybindings as we can. Will log the things you mentioned, it just seems like there's conflict with other keybindings.
> Maybe there are function keys bound? I wish I could find out.
Ctrl+Enter to run
> Is there any possibility of one of these "IDEs" having auto-indent / reindent? I see from the docs there's supposed to be one, but all I get is not-smart left/right motion.
What do you mean by left/right motion? Are you asking for like an auto-format feature? Or just handle re-indent when the indentation options change?
y-codemirror
-
Ace, CodeMirror, and Monaco: A Comparison of the Code Editors You Use in Browser
Not mentioned in the article but CodeMirror has a brilliant story for collaborative editing. You have two options:
- An Operational Transform (OT) based system built by Marijn (the creator of CodeMirror)
OT Demo: https://codemirror.net/6/examples/collab/
- A Conflict Free Replicated Datatype (CRDT) based system using Yjs crated by Kevin Jahns (the creator of Yjs) - https://github.com/yjs/y-codemirror
Yjs Demo: https://demos.yjs.dev/codemirror/codemirror.html
Both are brilliant, but I'm a huge fan of Yjs - the number of different bindings to different editors (and state systems) is brilliant.
What are some alternatives?
slate - A completely customizable framework for building rich text editors. (Currently in beta.)
codejar - An embeddable code editor for the browser 🍯
Code-Server - VS Code in the browser
phonk - PHONK is a coding playground for new and old Android devices
text-unicode - Unicode text OT implementation
codemirror-vim - Vim keybindings for CM6
y-codemirror.next - Collaborative extensions for CodeMirror6