Codible is a lightweight terminal based text editor with basic operations. It is heavily inspired from Kilo written by Salvatore Sanfilippo and is released under the BSD 2 clause license.
- Headless
- Can run irrespective of any desktop environment
- Embedded, scriptable
- Fully written in pure C language
- Doesn't depend on any library
- Independent of
curses - Standard escape sequenences like VT100
- REPL style CLI
-
By typing
codiblein Linux andcodible.exein Windows, it will open new buffer (clean slate mode). -
To open any existing file, just type
codibleand after aspaceprovide thefilename.
For example, for openingcodible.c, simply type:codible codible.cIn Windows, simply type:
codible.exe codible.c
Ctrl-S: SaveCtrl-Q: QuitCtrl-F: Find string in file (Escto exit, arrows to navigate)Home: Cursor at Left most characterEnd: Cursor at Right most characterPage Up: Previous PagePage Down: Next PageArrow Keys: For navigation
-
The following packages should be installed:
gitgccmake
-
Clone the repository by typing:
git clone https://github.com/Hridoy-31/Codible.gitin the terminal and press
Enter.If you are using GitHub CLI, then type:
gh repo clone Hridoy-31/Codiblein the terminal and press
Enter.It is recommended to use Github CLI
-
Change the directory to the cloned folder by typing:
cd Codibleand press
Enter. Now the terminal will operate in that directory -
To build Codible from source, type:
make codibleThis will create the Linux executable file named
codible -
To run Codible, simply just type:
./codibleThat's it.
See the usage section and Key Bindings section for help.
Because of using the <termios.h> header file, this text editor can not be installed
or used natively in Windows. There is no cross compiled library for <termios.h>
in Windows operating system.
-
To use Codible in windows, Cygwin must be installed. To install Cygwin, go to the official website Cygwin. Then, download and install Cygwin by running
setup-x86_64.exe -
In
Select packagesmenu, select the following packages:automakecygwin-develgcc-coregcc-g++gcc-tools-epoch1-autoconfgcc-tools-epoch1-automakegcc-tools-epoch2-autoconfgcc-tools-epoch2-automakegccmakedepgdbgitmakemakedepend
-
After installing Cygwin, add it to the PATH by simply putting
C:\cygwin64\bin;in the PATH variable. It might be different in your system. So check it carefully. -
Open
Cygwin64 Terminal. It will be inC:\cygwin64\home\USERdirectory. USER is your username here -
In the terminal, type:
git clone https://github.com/Hridoy-31/Codible.gitand press
Enter. It will fetch the repository to the above mentioned directory. -
Change the directory by typing:
cd Codibleand press
Enter. Now the terminal will active inside the directory. -
Now for building Codible from the source, type:
make codibleand press
Enter. -
Now type
codible.exeand pressEnter. Thats it !!
See the usage section and Key Bindings section for help.
