aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 074dbc5bffc77172f5c52676eb6643cbecbb2b35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# rayedit

Started as exam-period procrastination with raylib, gradually became
something resembling a text editor. Not sure how far it'll go.

## How to build & use

1. Download
   [raylib5](https://github.com/raysan5/raylib/releases#release-5.5)
   and extract tarball somewhere
2. `make RAYLIB_PREFIX=/path/to/raylib`
3. `./red <file>`
4. Ctrl+s to save

## Something implemented

- mmap-based fast loading and rendering
- lazy allocation when modifying each line

## Something not implemented (yet)

- Scroll
- Handling when the cursor goes off the screen because a line is too
  long