summaryrefslogtreecommitdiff
path: root/input.h
AgeCommit message (Collapse)Author
2023-01-31Start implementing editor commandscflip
This first step allows you to press the semicolon key to enter command mode, where you can type into a command line. Currently, pressing enter when in command mode will clear the command line but since there are no commands implemented it doesn't matter what you type in there.
2023-01-12Make the editor modal and refactor keyboard eventscflip
This makes the editor behave more like vi, with a seperate insert mode. This also refactors the keyboard input code to pass the SDL_Keysym structure to input.c and to use the SDL_TEXTINPUT event for editing text. SDL's text input event already fixes typing capital letters with shift, and should make it possible to enter text using an IME, however most unicode characters aren't properly rendered.
2023-01-12Move cursor movement into separate functionscflip
2023-01-09Implement basic keyboard event handlingcflip
2023-01-08Use C-style include guards instead of #pragma oncecflip
2023-01-08Initial import of existing source codecflip
This is based off of snaptoken's "Build Your Own Text Editor" tutorial at https://viewsourcecode.org/snaptoken/kilo/.