Skip to content

Gholamrezadar/GHDcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GHDcode

This is a text editor written in C++ using raylib. I wanted to understand how text editors work under the hood.

demo gif

Features

  • Display basic text
  • Line numbers
  • Zoom in and out
  • Change vertical line spacing
  • Cursor movment

How to use

  • Use Ctrl + Q to zoom out and Ctrl + E to zoom in
  • Use Shift + Q to decrease the vertical spacing and Shift + E to increase the vertical spacing
  • Use Ctrl + G to toggle the debug grid
  • Use Arrow keys to move the cursor (or Ctrl + ijkl)
  • Type any character to insert a character (lower+upper case, numbers)
  • Type Backspace to delete a character
  • Type Enter to insert a new line
  • Use Crtl + D to delete a line
  • Type Tab to insert 4 spaces

TODO

View TODO.md for a list of features to be implemented.

Demos

  • Text Input works + TAB handling demo image
  • Add cursor/cadet demo image
  • Right Now! demo image
  • Added Shortcuts for changing line spacing demo image
  • Added Line numbers and Text + padding demo image
  • Add vertical line spacing demo image
  • Main character grid demo image

Build

Build using CMake.

cmake -B build -S .
cmake --build build --config Debug

About

A simple text editor written in C++ using raylib

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •