Skip to content
/ ronto Public

A minimal flush-or-no-flush terminal text editor

License

Notifications You must be signed in to change notification settings

CroxxN/ronto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A minimal flush-or-no-flush syntax-highlighting terminal text editor

Warning

Not tested on Windows.
Starts in Vim mode. Hit i to start editing

​Ronto is a minimalistic terminal-based text editor with rudimentary syntax-highlighting designed to operate with minimal reliance on terminal escape sequences. It offers a subset of Vim keybindings, including hjkl for navigation, i for entering insert mode, and Escape to return to normal mode. Users can open, edit, and save files, as well as create new files from scratch. Ronto handles line and row overflows and implements custom deletion and movement functionalities. Ronto also implements a custom tokenizers to handle syntax highlighting and multiple consecutive delimeters.


image

Features:

  • Open, edit and save files
  • Syntax highlighting for a select C keywords and types
  • A subset of Vim keybindings (hjkl sequence, escape, and i implemented)
  • Line overflow handling
  • Row overflow handling
  • Minimal reliance on terminal escape sequence (Deletion, movement, etc is custom implemented, only uses terminal escape sequence to change position of cursor)

How to use?

Requirements: A C compiler (gcc or clang) and make

  • Clone this repository
> git clone <url>
  • To build with no debug info
> make release
  • OR to build with debug info
> make
  • To start with a new scratch buffer
  > ./ronto -n
  • To open/create file:
> ./ronto -f <file_name>
  • To enable logging
> ./ronto -l {*}
  • To clean the log file and the binary
> make clean
  • Control-q to quit
  • Control-s to save
  • Control-c to copy to clipboard

TODO:

  • Implement \t handeling
  • Add more vim keybindings
  • UI

About

A minimal flush-or-no-flush terminal text editor

Resources

License

Stars

Watchers

Forks