/an-editor-the-fork-of-loop

Fork of Loop ("A text editor built in Rust"). Might become another project.

Primary LanguageRustMIT LicenseMIT

Fork of Loop. Might become another project.

Loop: https://github.com/faraazahmad/loop

Original README

Loop (a text editor)

A (simple) text editor than runs in your terminal, built in Rust. This was made using the super awesome tutorial written by @pflenker on his website here.

asciicast

(Click play to see basic usage)

Current features

  • Open file
  • Edit file
  • Save file to disk
  • Search for words in file (forwards and backwards)
  • Warn when quitting editor without saving file.

Planned features

  • Syntax highlighting (WIP)
  • Tab support
  • User defined config file
  • Open folder
  • Directory tree

Building from source

You need to have Rust installed on your system. You can do so from the official link.

To build it, run

$ cargo build

or run it directly using

$ cargo run <path/to/file>

where <path/to/file> is the path to the file you want to edit. You can leave it blank if you want to create and edit a new file (filename will be asked on save).