Commit Graph

7 Commits

Author SHA1 Message Date
Kartik K. Agaram fdc84789fc switch all handlers to run either the app or editor 2023-12-31 16:21:30 -08:00
Kartik K. Agaram 1b898d4a2e type out a filename to load/save 2023-11-26 08:52:34 -08:00
Kartik K. Agaram 2e66d2f0fd send errors from event handlers to output editor 2023-11-21 21:22:52 -08:00
Kartik K. Agaram fc3cb96171 support event handlers
I've agonized over conflicts between editor and script handlers for a
while, but finally the solution occurred to me: to use the script's
handlers, hide the editor. To use the editor's handlers, show the
editor. The menu and settings are always active. This seems nice and
consistent, easy to explain.

Mike Stein would prefer we just supported love.* handlers in scripts to
minimize special cases and cognitive load for people. But I'd rather
err on the side of being transparent about what's going on inside. As a
compromise I'm supporting love.* names at least in addition to my
rephrasings (which came about mostly because love.keychordpressed is
just too much of a mouthful)
2023-11-21 19:17:49 -08:00
Kartik K. Agaram b0670b84ff get rid of an assertion
It's easy for cursor to go off viewport, and that seems fine. Just don't
let a cursor off screen receive keys.
2023-11-20 10:27:22 -08:00
Kartik K. Agaram e38191fc4f aggregate global state inside a 'pane' object
We're soon going to start juggling multiple of these.
2023-11-19 13:15:06 -08:00
Kartik K. Agaram 01a8e0bb9f new fork: carousel shell 2023-11-15 06:06:56 -08:00