/oed

Oed - Ocaml Editor

Primary LanguageOCaml

Oed

Text editor written in Ocaml with ncurses bindings. Primary goal was to use functional programming techniques in practice like monads or GADT. Editor still lacks a lot of features like line-wrap, displaying utf-8 characters, selection and more.
Wouldn't use it to edit important files.

Installation

You can either build it from source or install as opam package. In order to build from source, you need to have dune installed.

opam package

$ opam install .

source

Executable should be under ./_build/default/bin/main.exe

$ opam install curses
$ dune build @install

Usage

Editor supports Normal (N) and Insert (I) mode with following keybinds:
Shift-s (N) - save file
Shift-q (N) - quit
Shift-i and Shift-a (N) - go to start/end of a line
u and r (N) - undo and redo edition history
Esc and i (N) - enter insert mode
Esc (I) - enter normal mode