Skip to content

appleswiggy/lekh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lekh text editor
Made with Rust Supports Syntax highlighting Compatibility Cross-platform

Lekh Text Editor

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.

InstallationKey FeaturesHow To Use

Installation

  • Build from source
    git clone https://github.com/appleswiggy/lekh.git
    cd lekh/
    cargo build --release
    ./target/release/lekh [FILENAME]

Key Features

  • 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.

How To Use

  • To open an empty text editor window, execute the binary:
    lekh
  • To open a file from its path:
    lekh [FILEPATH]