Simple command-line editor. Takes a directory as an argument and opens the files in that folder. Now have all the basic functionalities of a file editor.
Make sure you have installed all of the following prerequisites on your development machine:
g++
to compile the codecmake
as build tool
You can install the prerequisites as follows:
On Ubuntu/Debian: sudo apt install cmake g++ make
On Fedora/CentOS: sudo dnf install cmake gcc-c++ make
On macOS: brew install cmake
To unit test and debug build run:
cmake -DCMAKE_BUILD_TYPE=Debug . -B./build
cd build
make
# Run debug build
./file_editor.out
# Run unit tests
./unit_tests
To create a release build run:
cmake -DCMAKE_BUILD_TYPE=Release . -B./build
cd build
make
./file_editor.out
This will create an executable binary in the build/
folder.
If you are using Visual Studio Code then we recommend the CMake Tools Extension to build, debug, and run the application.
Commands | |
---|---|
Exit program | Ctrl-Q |
Switch file | Ctrl-W |
Save file | Ctrl-S |
Copyright (c) 2022 Albin Persson
This work (source code) is licensed under the GNU General Public License v3.0.