A Terminal-Based Text Editor (Similar to Vim)
Runing on JDK-11
depends Java Native Access to call native methods
- Open given file
- Vertical & Horizontal scrolling
- Search through the whole file
- Support Windows/MacOS/Linux terminal
Windows Terminal test passed, MacOS and Linux haven't been tested yet
# go to the script path
cd <filepath>
# run editor
java -cp jna-5.13.0.jar Viewer.java <fileToOpen>
Ctrl + Q
to exit editor
Ctrl + F
to enter search mode
Ctrl + S
to save the file
ESC
or ENTER
to exit search mode (ESC
should be pressed twice)
Thanks Marco Behler for offering free guide videos