A simple cross-platform text editor written in Rust programming language that supports syntax highlighting for a large number of programming languages, incremental search and window resize handling. This project is made as a learning experience and does not aim to be the best / the fastest text editor out there.
Installation • Key Features • How To Use
- Build from source
git clone https://github.com/appleswiggy/lekh.git cd lekh/ cargo build --release ./target/release/lekh [FILENAME]
- Syntax Highlighting
- Lekh supports dynamic syntax highlighting where each row is aware of the context of full document. If a change happens in one row of the document, the other rows re-highlight themselves to match the context otherwise the change could potentially render the highlighting invalid.
- Lekh automatically detects and loads the appropriate syntax for the file using its file name or by reading the first line of the file.
- Incremental Search
- Lekh supports incremental search where the file is searched after each key press when the user is typing in their search query.
- User can search forward or backward using the arrow keys.
- To open an empty text editor window, execute the binary:
lekh
- To open a file from its path:
lekh [FILEPATH]