Skip to content

kristensala/slate

Repository files navigation

Logo

Current state of the editor

Demo

Gap buffer demo

Gap Buffer Demo

  • Odin version: dev-2025-10-nightly
  • SDL3

Roadmap

  • Migrate from SDL2 to SDL3
  • Render/draw only visible lines
  • Scrolling
  • Cursor
  • Delete text
  • Status line for vim mode (NORMAL, VISUAL, INSERT)
  • Add an FPS cap
  • Open and read files (partially done; currently no ability to open a file while running the program)
  • Use command line to edit editor appearance (font, font size, colors, etc) and to open new files
  • Color code block comment (/**/)
  • Jump to line
  • Search in file
  • Copy/Paste
  • Highlight text
  • Save/Save as
  • Vim motions (a, w, b, ciw, viw, dd, gg, ^, %, etc)
  • Show current file name
  • Mouse support (maybe? Who uses a mouse?)
  • LSP support
  • Indenting (probably with LSP support?)``
  • Look into 'Gap buffer' & 'Rope (data strucutre)' to work with text, because storing text as char array is expensive

Running on Linux

  • Install SDL3 core and SDL ttf (instructions are provided by SDL under SDL repo)
    • error while loading shared libraries: libSDL3.so.0: cannot open shared object file: No such file or directory to solve it, run sudo ldconfig

Known errors/bugs

  • On linux, when using picom there might be some flickering (not sure why atm). I was using CPU on Powersave mode and the frames dropped quite low at times, but on performance mode they still seem too low on my desktop vs on my laptop. Desktop gets slightly over 100, but laptop goes to ~300 without the cap. Desktop has i5, laptop has i7

About

Text editor in Odin with SDL3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages