~rabbits/left

Text editor, written in ANSI C
Fixed crashing issue with delete at -1
Fixed issue with paste
Minor standardization

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~rabbits/left
read/write
git@git.sr.ht:~rabbits/left

You can also use your local clone with git send-email.

#Left

A minimal text editor, written in ANSI C.

#Build

To build left, you must have SDL2.

cc left.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -L/usr/local/lib -lSDL2 -o left

#Controls

#General

  • ctrl+n New
  • ctrl+r Reload
  • ctrl+s Save
  • ctrl+a Select all
  • ctrl+h Toggle Guides
  • ctrl+right End of line
  • ctrl+left Beginning of line
  • ctrl+plus Zoom in
  • ctrl+minus Zoom out

#Modifiers

  • ctrl+] Indent selection
  • ctrl+[ Unindent selection
  • ctrl+u Uppercase selection
  • ctrl+l Lowercase selection
  • alt+right End of word
  • alt+left Beginning of word

#Mouse

  • shift click select to
  • right-click word jump to word "foo"
  • right-click :123 jump to line 123

#TODOs

  • shift+arrow selection
  • shift+page selection
  • insert mode
    • change cursor depending on mode
  • find should not resize the selection.
  • resize buffer if too small
  • cursor should keep in memory col/row
  • If paste on launch, it pastes poison.