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
codible
in Linux andcodible.exe
in Windows, it will open new buffer (clean slate mode). -
To open any existing file, just type
codible
and after aspace
provide thefilename
.
For example, for openingcodible.c
, simply type:codible codible.c
In Windows, simply type:
codible.exe codible.c
Ctrl-S
: SaveCtrl-Q
: QuitCtrl-F
: Find string in file (Esc
to 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:
git
gcc
make
-
Clone the repository by typing:
git clone https://github.com/Hridoy-31/Codible.git
in the terminal and press
Enter
.If you are using GitHub CLI, then type:
gh repo clone Hridoy-31/Codible
in the terminal and press
Enter
.It is recommended to use Github CLI
-
Change the directory to the cloned folder by typing:
cd Codible
and press
Enter
. Now the terminal will operate in that directory -
To build Codible from source, type:
make codible
This will create the Linux executable file named
codible
-
To run Codible, simply just type:
./codible
That'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 packages
menu, select the following packages:automake
cygwin-devel
gcc-core
gcc-g++
gcc-tools-epoch1-autoconf
gcc-tools-epoch1-automake
gcc-tools-epoch2-autoconf
gcc-tools-epoch2-automake
gccmakedep
gdb
git
make
makedepend
-
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\USER
directory. USER is your username here -
In the terminal, type:
git clone https://github.com/Hridoy-31/Codible.git
and press
Enter
. It will fetch the repository to the above mentioned directory. -
Change the directory by typing:
cd Codible
and press
Enter
. Now the terminal will active inside the directory. -
Now for building Codible from the source, type:
make codible
and press
Enter
. -
Now type
codible.exe
and pressEnter
. Thats it !!
See the usage
section and Key Bindings
section for help.