nano writen in lua.
this project is only in the preveiw stages as indecated by the 'p' before the version.
currently lua nano only has 6 keyboard shortcuts:
- ^O writes the current buffer to a file
- ^X closes the editor WITHOUT saving
- ^F finds text (no regex)
- ^N goes to next instance of found text
- ^G replaces text
- alt-f finds text (with regex)
other than that the editor uses standered up/down/left/right to move the cursor and typeing works fine.
There is no easy way of getting a release currently.
You can run it if you have lua5.3 installed and the luarocks pakage lua-term
. Then, in the projects directory, simply type ./main.lua
to open the editor or ./main.lua file.txt
to open a spicific file.
sudo apt install lua5.3 luarocks
sudo luarocks install lua-term
cd /tmp
git clone https://github.com/BEN1JEN/lua-nano
cd lua-nano
chmod +x main.lua
sudo cp main.lua /usr/bin/lano
sudo cp -r libs /usr/local/lib/lua/5.3/
- Both lua5.3 and luarocks shuld be in most package managers (eg. yum, pacman, rpm, etc...)
- The install.sh script shuld work as long as you have sudo install and are running a debian-based distrobution.
- Currently windows is not, and will not be supported, as the windows command prompt is simply terrible.
- lua 5.3
- lua-term
- linux command shell