Skip to content

Ixaruss/vector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vector

A lightweight, terminal-based text editor built in Rust, featuring syntax highlighting for Rust code.

Download

You can download the latest release here:

Download for Linux

Extract the zip to a folder and export path

cd /{folder_name}
export PATH="/vector/bin:$PATH"
# now kill the terminal and open new terminal to reload .bashrc file

Build from souce for mac/windows

Ensure you have Rust and Cargo installed. If not, install them using [Rustup](https://rustup.rs/):

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Clone the repository and navigate to the project folder:

git clone https://github.com/xianglii-yao/vector.git
cd vector

Running the Editor

Run the editor using Cargo:

cargo run -- release

To build an optimized release binary:

cargo build --release
./target/release/rust-text-editor

Usage

  • Open the editor in the terminal and start typing.
  • Use common text navigation and editing shortcuts.
  • Rust syntax highlighting is enabled automatically.

Keyboard Shortcuts

  • Ctrl + S - Save the file
  • Ctrl + X - Quit the editor
  • Arrow Keys - Move cursor
  • Ctrl + F - Find text
  • Ctrl + Z - Undo last action

Preview

Image

Image

Contributing

Contributions are welcome! Feel free to fork the repository, create a new branch, and submit a pull request.

Contact

For any questions or feedback, reach out via GitHub issues.

About

terminal based text-editor with syntax highlighting

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages