~ecs/sd

Makefile: add .POSIX
get_window_size: restore cursor position
main.c: use true instead of 1
Add command counts
load_file: handle empty files
Makefile: add -g
f654cc67 — Eyal Sawady 10 months ago
Use registry-based commands for normal mode

Still TODO are parametrized commands and counts.
d988cda5 — Eyal Sawady 10 months ago
run_command: keep searching on -2

Seems like the right behavior.
62d1c801 — Eyal Sawady 10 months ago
registry: move not-found handling to process_cmd

This allows registries to be reused for normal mode
3377c5c2 — Eyal Sawady 10 months ago
main.c: don't force-quit on -2

`q!` now zeroes state->dirty before returning -1.
88aa7dd3 — Eyal Sawady 10 months ago
commands.c: add :q! and :nop
ac4c3c40 — Eyal Sawady 10 months ago
main.c: better error msgs, force-quit on -2

Also track name of currently open file.
b0b555b9 — Eyal Sawady 10 months ago
TODO: more commands
fa817901 — Eyal Sawady 10 months ago
process_cmd: call run_command()
0d780ae5 — Eyal Sawady 10 months ago
rendering.c: call init_commands()
ec9bde0f — Eyal Sawady 10 months ago
Makefile: compile commands.o
d6aaa9a9 — Eyal Sawady 10 months ago
commands.{c,h}: initial commit

(Currently unused) code to initialize a registry.
72346652 — Eyal Sawady 10 months ago
common.{c,h}: add command registry
11b179dc — Eyal Sawady 10 months ago
common.{c,h}: don't expose helper functions
fe0a7690 — Eyal Sawady 10 months ago
refresh_screen: fix display of insert_buffer
05d295d7 — Eyal Sawady 10 months ago
Makefile: fix for BSD make
Next