mirror of
https://github.com/microsoft/edit.git
synced 2026-06-18 03:44:53 -05:00
239cde5f72e0e1ee7e6ddfe216b59571c6e4ffdc
LineCache to optimize newlines lookup (#352)
This code was originally written for speeding up line searches but was disabled since we've since optimized line seeking with SIMD. We'll still have use for this code in the future, however, to cache syntax highlighter state every N lines.
Edit
A simple editor for simple needs.
This editor pays homage to the classic MS-DOS Editor, but with a modern interface and input controls similar to VS Code. The goal is to provide an accessible editor that even users largely unfamiliar with terminals can easily use.
Installation
- Download the latest release from our releases page
- Extract the archive
- Copy the
editbinary to a directory in yourPATH - You may delete any other files in the archive if you don't need them
WinGet (Windows)
- Open up a terminal of your choice and run the following command:
winget install Microsoft.Edit editwill be automatically added to yourPATH. If typingeditdoesn't work, open a new terminal.
Build Instructions
- Install Rust
- Install the nightly toolchain:
rustup install nightly- Alternatively, set the environment variable
RUSTC_BOOTSTRAP=1
- Alternatively, set the environment variable
- Clone the repository
- For a release build, run:
cargo build --config .cargo/release.toml --release
