Coder Social home page Coder Social logo

jahfer / ot Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 2.0 389 KB

Implementation of full Operational Transform editor in Clojure. Library version: https://github.com/jahfer/othello

License: Eclipse Public License 1.0

Clojure 97.64% CSS 2.36%

ot's Introduction

ot Build Status

ot is a basic implementation of Operational Transforms, used to resolve concurrent edits of a document from multiple sources.

Is this what I want?

Probably not. This is a first-pass at the idea. The library extracted from this is probably what you're interested in: jahfer/othello. There's also an implementation using that library available at jahfer/othello-editor.

Usage

Start server:

$ lein server

Start server using reloaded pattern:

$ lein repl
ot.repl> (go) # change code...
ot.repl> (reset)

Compile and watch cljs + cljx:

$ lein client # runs tests on compile!
$ lein cljx auto

Run tests:

$ lein cleantest

Run specific group of tests:

$ lein do cljx, clj-test # or...
$ lein do cljx, cljs-test

References

License

Copyright © 2015 EPL

Distributed under the Eclipse Public License version 1.0.

ot's People

Contributors

jahfer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fuath pavan142

ot's Issues

Incorrect caret tracking

Bug
When text is inserted before the caret, the caret does not move. If text is typed after the user's caret, the editor behaves as expected (does not move the caret).

Expected behaviour
It should increment n times where n is the number of characters inserted before the caret.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.