burntcarrot / pairpad Goto Github PK
View Code? Open in Web Editor NEWA collaborative text editor using CRDTs and WebSockets. Lightweight, easy-to-setup.
Home Page: https://www.aadhav.me/posts/collaborative-editor
License: MIT License
A collaborative text editor using CRDTs and WebSockets. Lightweight, easy-to-setup.
Home Page: https://www.aadhav.me/posts/collaborative-editor
License: MIT License
Exporting content to a file, and importing content from that file would be a nice addition.
As shown in the video, as the bottom editor inserts and deletes, the top editor's cursor moves backwards and forwards. The cursor position should be updated as remote edits come in (so that the cursor stays on the 'h' in this example).
Another example of incorrect behavior. The bottom editor's cursor should stay on the 'w' as the top editor inserts and deletes characters.
Right now, the cursor movement happens using the left and right arrow keys.
For a better user experience, navigation using the up and down arrow keys would be nice to have.
I have a basic idea on how it would work:
end_pos + 1
Related: #29
Users should be able to define their own key bindings through the configuration file.
Users should be able to use a configuration file to customize the editor.
Here is an example:
theme = "onedark"
[editor]
word-wrap=false
A nice addition would be to have a separate status bar containing the active users.
Would this work:
The other way would be to use the server's existing activeClients
map, but the clients might need to fetch the list at specific intervals from the server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.