Skip to content

Zank613/ced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ced

Custom terminal based text editor written in C89, ncurses and UNIX headers.

Features

  • Syntax highlighting.
  • Undo/Redo.
  • Status bar.
  • Under 40KB (~37KB).
  • Designed to be compliant with UNIX/POSIX operating systems.
  • Single file.
  • Shell panel.

Prerequisites

  • Use UNIX/POSIX based OS. (e.g. Linux)
  • Use GCC or any other C compiler.
  • Have ncurses installed.

How to use

Build it

gcc -o ced main.c -lncurses

Run it

./ced

Screenshots

ced in action

your terminal might look different, I use xfce4 terminal

Key Bindings

  • Ctrl+H: Hide/Show the keybindings.
  • Ctrl+Q: Quit
  • Ctrl+S: Save
  • Ctrl+O: Open
  • Ctrl+Z: Undo
  • Ctrl+Y: Redo
  • Ctrl+G: Goto Line
  • Ctrl+F: Search
  • Ctrl+R: Replace (prompts the old text and new text, then does a naive replace all in every line)
  • Ctrl+W: Shell panel toggle
  • Ctrl+E: Enter shell command
  • Ctrl+D: Duplicate current line
  • Ctrl+K: Kill (delete) current line
  • Ctrl+T: Toggle line numbers on/off
  • Ctrl+U: Jump to top of file
  • Ctrl+L: Jump to bottom of file
  • Home/End, PgUp/PgDn: Navigation
  • Mouse: Click to move cursor, wheel scroll

See Contributing for contribution.

Acknowledgements

License

ced is licensed under MIT License. Check LICENSE for more.

Notes

Syntax highlighting

  • Even though this uses a similar highlight.syntax file from my previous text editor they use a slightly different parser and the file itself is altered for better syntax highlighting.
  • This editor is very similar to the previous editor, this just only a true single file and made in C89.

About

single file terminal based text editor written in C89 and ncurses

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages