~ecs/sd

f654cc67 — Eyal Sawady 9 months ago master
Use registry-based commands for normal mode

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

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

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

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

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

(Currently unused) code to initialize a registry.
72346652 — Eyal Sawady 9 months ago
common.{c,h}: add command registry
11b179dc — Eyal Sawady 9 months ago
common.{c,h}: don't expose helper functions
fe0a7690 — Eyal Sawady 9 months ago
refresh_screen: fix display of insert_buffer
05d295d7 — Eyal Sawady 9 months ago
Makefile: fix for BSD make
11eb1ad1 — Eyal Sawady 9 months ago
Makefile: update
40557794 — Eyal Sawady 9 months ago
Warn on quit with unsaved changes
fe436265 — Eyal Sawady 9 months ago
state: track # of modifications
7af8ceee — Eyal Sawady 9 months ago
Remove TODO on damage
91fb193a — Eyal Sawady 9 months ago
{winch -> sig}_handler

(We're not catching any other signals at the moment, but this seems like better
style.)
bf97f776 — Eyal Sawady 9 months ago
winch_handler: refresh screen if not rendering

When possible, refresh screen immediately on SIGWINCH
Next