https://github.com/gholamrezadar/ghdcode
a featureless but very fast text editor written in C++ using raylib
https://github.com/gholamrezadar/ghdcode
cpp raylib text-editor
Last synced: 3 months ago
JSON representation
a featureless but very fast text editor written in C++ using raylib
- Host: GitHub
- URL: https://github.com/gholamrezadar/ghdcode
- Owner: Gholamrezadar
- Created: 2024-12-31T08:36:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T13:37:02.000Z (over 1 year ago)
- Last Synced: 2025-02-21T05:15:35.132Z (over 1 year ago)
- Topics: cpp, raylib, text-editor
- Language: C++
- Homepage:
- Size: 798 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GHDcode
This is a featureless but very fast text editor written in C++ using raylib.
I wanted to understand how text editors work under the hood.

## 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
- Type any character to insert a character (lower+upper case, numbers)
- Type `Backspace` to delete a character
- Type `Tab` to insert 4 spaces
## TODO
View TODO.md for a list of features to be implemented.
## Demos
- Text Input works + TAB handling

- Add cursor/cadet

- Right Now!

- Added Shortcuts for changing line spacing

- Added Line numbers and Text + padding

- Add vertical line spacing

- Main character grid

## Build
Build using CMake.
```sh
cmake -B build -S .
cmake --build build --config Debug
```