Skip to content

Text editor written in C using SDL2

anton-tchekov/editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

editor

The goal of this project is to create a lightweight code editor written in C, that is optimized for C projects, is performant, and productive.

This is what it looks like editing its own source code:

Screenshot of Editor

TODO

  • Command mode ctrl+T

    • Convert upper, lower, camel snake case automagically
    • Modify Settings (Remove shortcuts)
  • Make vec faster (Push)

  • Side bar for file manager (Ctrl+b)

    • Mouse Support in menus
    • File browser: Open Files
  • Search and replace in file and whole folder

  • Align defines handle comments

  • Indent Selected using Tab (small bug with cursors)

  • Shift tab work with spaces

  • Undo / Redo

  • Multiple Cursors

Project overview

Abbreviations

Two or three letter abbreviations are used as a module prefix.

BF  = Buffer Management [buffers.c]
TB  = Text Buffer [textbuf.c]

TF  = Text Field [textfld.c]
DD  = Dropdown Menu [dropdown.c]

GT  = Go to location [goto.c]
OB  = Open Buffers [opened.c]
CF  = Confirmation dialog [confirm.c]
MSG = Message (Error or Info) [msg.c]

VEC = Vector (Dynamic array) [vector.c]
KW  = Keyword hashtable (for syntax highlighting) [keyword.c]

SR  = Search and Replace [search.c]
SV  = Save File (As) [save_as.c]
OP  = Open File [open.c]
RR  = Rendering [render.c]
CR  = Cursor [cursor.c]
SEL = Selection [cursor.c]

Common Functions

example_init
Initialize example (for the first time)

example_destroy
Cleanup example, when it is no longer used (Free memory, etc.)

example_key
Example receives a keypress

example_open
Make example visible on the screen and focus it

example_clear
Reset example to initial state (For example, text field to empty string)

example_render
Example is rendered to the screen

About

Text editor written in C using SDL2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published