~akkartik/left

Fork of https://git.sr.ht/~rabbits/left with some personal tweaks
b482fa08 — Kartik Agaram 14 days ago
larger window
Fixes cursor offset with hor scroll
1dc219c4 — Kartik Agaram 15 days ago
fix clicks on highlight icon

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~akkartik/left
read/write
git@git.sr.ht:~akkartik/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