dan-kc / editor

πŸ“ A terminal-based text editor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Editor

WIP but feel free to take a look

src/
β”œβ”€β”€ app.rs     -> holds the state and application logic
β”œβ”€β”€ buffer.rs  -> holds the text buffer abstration
β”œβ”€β”€ event.rs   -> handles the terminal events (key press, mouse click, resize, etc.)
β”œβ”€β”€ handler.rs -> handles the key press events and updates the application
β”œβ”€β”€ lib.rs     -> module definitions
β”œβ”€β”€ main.rs    -> entry-point
β”œβ”€β”€ tui.rs     -> initializes/exits the terminal interface
β”œβ”€β”€ ui.rs      -> renders the widgets / UI
└── ui/
    └── widgets.rs     -> holds the UI widgets

TODO

-- fix:insert mode not working

-- b, B

-- viewport & some kind of text_area abstraction

-- flesh out git stuff -- account for numbers in the next word thing -- better abstraction for iterating words

About

πŸ“ A terminal-based text editor.


Languages

Language:Rust 100.0%