Skip to content

Zank613/simple_editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple editor

Custom terminal-based text editor written in C99 and ncurses library. Yes it is single file.

Features

  • CTRL+S to save. Save files are created by making a saves directory in the root directory of the program.
  • CTRL+O to load a file.
  • Tab is 4 spaces.
  • Auto indentation.
  • Line numbers on the left side.
  • Tweaking settings with settings.config file.
  • CTRL+Y for Redo & CTRL+Z for Undo.
  • Mouse wheel to control cursor.
  • Status bar on the bottom.
  • Home/End keys jump to start or end of the line.
  • Page up/down scroll by 5 lines.

Prerequisites

  • Use Linux.
  • Have ncurses installed.
  • Have GCC or any other C compiler installed.

How to use

Clone Git repo

git clone https://github.com/Zank613/simple_editor.git
  • For only experimental syntax highlighted branch

    git clone -b syntax_highlight_experimental --single-branch https://github.com/Zank613/simple_editor.git

Build it

gcc -o custom_editor main.c -lncurses

Run it

./custom_editor

Tweak the settings.config (Optional)

TAB_FOUR_SPACES = TRUE;
AUTO_INDENT = TRUE;

Acknowledgements

About

custom text editor in C99 and ncurses

Topics

Resources

License

Stars

Watchers

Forks

Languages