ant
is yet another text editor, written in Rust and C. It aims to be small, fast, and efficient, while maintaining important features. Note that it only supports OSX and Linux.
Current version: 0.1.0 - otherwise known as Pre-Pre-Alpha!
This is mainly a learning project, but there are some good reasons to use ant
:
-
Written in Rust, ensuring memory, type, and thread safety while using the program.
-
Features a load of configuration options that can make it as powerful as vim, or as simplistic as nano. (Not ready yet)
-
Ant can also serve as an introduction to modal editors in the terminal. (Not ready yet)
-
Find a text editor *faster than this. I'll wait.
*This value can vary depending on the text editor.
List of features that are complete, and not so complete. Not in exact order:
-
Open and create a file
-
View contents of file
-
Accurately move through file
-
Insert characters in file
-
Allow saving file to disk
-
Allow anonymous buffers
-
Allow lines longer than the terminal width to extend.
-
Allow copy and paste support
-
Use tabs instead of spaces
-
Pressing return mid-line should move rest of text to next line
-
Allow lines >1000
-
Require sudo to open or create a protected file
-
Display messages on save and such
-
Display prompts to save an anonymous buffer
-
Allow multiple buffers
-
Allow syntax highlighting
-
Allow search
-
Allow find and replace
-
Allow easy suckless configuration
-
Allow modal editing and Vim keybindings
-
Allow editor configuration
-
Allow macros
-
Allow custom commands
-
Allow moving to line by doing
:{linenumber}
-
Codebase refactor
-
Undo and Redo
Presently, the only way to install Ant is to build it from source.
-
Clone the repo, and
cd
into it -
cd
into theant_frontend
directory -
Run
cargo build --release
-
Now, move the binary from
./target/release/ant
to some directory on your system path
Here are the most common usage examples for ant
:
ant file.txt
Enter: C-q
ant
is licensed under the GNU/GPLv3