Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Abstract engine for text edition in OCaml
OCaml CSS Other
Branch: master
Failed to load latest commit information.
src update use of deprecated stdlib functions
.gitignore Move to git
CHANGES.md version 1.4
LICENSE fix LICENSE date
Makefile Add a Makefile
README.md Move to git
_oasis add bytes dependency
configure Add a Makefile
dist update dist
setup.ml Add a Makefile
style.css initial import

README.md

Zed

Zed is an abstract engine for text edition. It can be used to write text editors, edition widgets, readlines, ... You just have to connect an engine to your inputs and rendering functions to get an editor.

Zed provides:

  • edition state management,
  • multiple cursor support,
  • key-binding helpers,
  • general purpose unicode rope manipulation functions.

Dependencies

For building the development version, you also need to install oasis (>= 0.3.0).

Installation

To build and install zed:

$ ./configure
$ make
$ make install

Documentation (optional)

To build the documentation:

$ make doc

It will then be installed by make install.

Tests (optionnal)

To build and execute tests:

$ ./configure --enable-tests
$ make test

Modules

  • Zed_edit: the main module, it defines edition engines.
  • Zed_cursor: manages cursors. Cursors are automatically updated when the text is modified.
  • Zed_lines: maintains the offsets of beginning of lines.
  • Zed_input: helpers for implementing key bindings.
  • Zed_macro: helpers for writing macro systems.
  • Zed_utf8: general purpose UTF-8 strings manipulation.
  • Zed_rope: general purpose unicode ropes manipulation.
Something went wrong with that request. Please try again.