Commit Graph

432 Commits

Author SHA1 Message Date
Kartik K. Agaram a4f6165ee7 Merge text0 2023-10-09 21:18:58 -07:00
Kartik K. Agaram d5b23f1a2e merge bugfix 2023-10-09 21:17:15 -07:00
Kartik K. Agaram 8d50a56eb7 Merge text0 2023-10-09 21:15:21 -07:00
Kartik K. Agaram 3c92631bdf Merge text.love 2023-10-09 21:13:28 -07:00
Kartik K. Agaram b84cbf6d21 Merge lines.love 2023-10-09 20:55:24 -07:00
Kartik K. Agaram 6e391d7875 start supporting LÖVE v12
To do this I need some support for multiple versions. And I need an
'error' mode to go with existing 'run' and 'source' modes
(`Current_app`). Most errors will automatically transition to 'source'
editor mode, but some errors aren't really actionable in the editor. For
those we'll use 'error' mode.

The app doesn't yet work with LÖVE v12. There are some unit tests failing
because of differences in font rendering.
2023-10-09 20:05:19 -07:00
Kartik K. Agaram 37cb030489 Merge lines.love 2023-09-10 21:56:43 -07:00
Kartik K. Agaram 7062963888 Revert "deemphasize the source editor"
Now that we have decent error handling, I think we can encourage people
to press ctrl+e again.

This reverts commit 4b43e9e85d.
2023-09-10 21:45:59 -07:00
Kartik K. Agaram 529857ad73 Merge lines.love 2023-09-04 15:22:10 -07:00
Kartik K. Agaram e74b92b733 show any error after switching to source editor
Error_message is a special global. It's set when the app (Current_app = 'run')
encounters an error and switches to the source editor, and cleared when
switching from source editor back to the app.
2023-09-04 15:07:54 -07:00
Kartik K. Agaram ffa8c4041a bugfix: bring back an accidentally deleted line
Caused by a bad merge in commit 5622e523c.

Thanks Myte#5310 on Discord.
2023-08-05 00:09:04 -07:00
Kartik K. Agaram 5622e523c3 Merge text0 2023-07-11 11:15:46 -07:00
Kartik K. Agaram c3f8250cb2 Merge text.love 2023-07-11 11:11:48 -07:00
Kartik K. Agaram cc67c641dc Merge text0 2023-07-10 19:07:02 -07:00
Kartik K. Agaram f8930488aa Merge text.love 2023-07-10 18:41:23 -07:00
Kartik K. Agaram 7b5ede43e2 slightly standardize on app-specific stuff 2023-06-18 22:44:27 -07:00
Kartik K. Agaram 7e160e0de5 maintain the initial font size in a global
Apps should keep the global updated when changing the font size.
2023-06-05 22:18:44 -07:00
Kartik K. Agaram 44e3cdcdb7 Merge text0 2023-06-04 15:34:49 -07:00
Kartik K. Agaram 484602bd9e Merge text.love 2023-06-04 15:25:46 -07:00
Kartik K. Agaram 4fb97b9d34 bugfix: wasn't recovering from errors
Bug was introduced in commit a2451aa26 32 hours ago, because I didn't go
over the manual tests for the error-handling protocol after modifying
the error-handling protocol. (I only tested them in template-live.)
2023-04-21 08:18:00 -07:00
Kartik K. Agaram c95bffed88 Merge text0 2023-04-20 18:28:23 -07:00
Kartik K. Agaram 6d86b5268b drop an unused var 2023-04-20 18:27:46 -07:00
Kartik K. Agaram a2451aa26e attempt at better error recovery
- I often find that opening up driver.love and sending any message gets
  my app unwedged. Retrying should be easy. Just press a key.
- There's really no reason for the app to become unresponsive while
  waiting for code changes.

This approach tries to address both. Press any key to retry, or show the
error right on the window while I whip out driver.love. You can also
copy the message to the clipboard by hitting 'c'.

Drawbacks of this approach:
  - nobody's going to read the message. I myself didn't notice the
    default support for copying the error message for _months_.
  - more complexity for anyone reading the code to parse. More stuff
    that can go wrong. Any errors within the handler will crash the app
    hard. (Though now there's less code in the handler, so maybe this is
    an improvement on that score.)

The best plan is still to not rely on this too much. Don't ship bugs.
2023-04-20 00:30:25 -07:00
Kartik K. Agaram 71c82e5c09 document available modes 2023-04-19 23:16:46 -07:00
Kartik K. Agaram 5561486cb6 Merge text0 2023-04-19 19:47:42 -07:00
Kartik K. Agaram c95dc559c8 record support for multiple versions 2023-04-19 19:45:17 -07:00
Kartik K. Agaram 0d913ba8f1 Merge lines.love 2023-04-09 14:14:03 -07:00
Kartik K. Agaram 4b43e9e85d deemphasize the source editor
This repo does not support freewheeling modification. It's a primitive
to enable freewheeling modification in downstream forks.

The source editor is a convenience, but it's a sharp tool and can easily
leave the app in a broken state that requires dropping down to external
tools (editor, file manager) to fix.
2023-04-09 11:12:36 -07:00
Kartik K. Agaram f387c40d95 restart on a remote command from the driver
This should be useful for ensuring that apps work the same after
restart.
2023-04-07 18:18:43 -07:00
Kartik K. Agaram f3748b9003 bugfix for merge commit 2023-04-02 17:48:11 -07:00
Kartik K. Agaram f78503b971 bugfix for merge commit 2023-04-02 17:47:09 -07:00
Kartik K. Agaram 5b90b50776 stray dead code 2023-04-02 17:27:26 -07:00
Kartik K. Agaram 26bd3fa76d Merge text.love 2023-03-25 12:49:25 -07:00
Kartik K. Agaram 535933d278 Merge text0 2023-03-25 11:50:00 -07:00
Kartik K. Agaram b1c904157d Merge text.love 2023-03-25 11:45:40 -07:00
Kartik K. Agaram 9390a4a418 Merge text0 2023-03-23 21:51:55 -07:00
Kartik K. Agaram 0264e2ba19 Merge text.love 2023-03-23 21:48:27 -07:00
Kartik K. Agaram aa8994167f Merge lines.love 2023-03-23 21:43:26 -07:00
Kartik K. Agaram 99faf61abb mouse wheel support 2023-03-23 21:00:09 -07:00
Kartik K. Agaram d87331e5ae fix previous merge
get typed in keystrokes to show on screen on iPad

Many thanks to Myte for helping test this!
2023-03-19 00:22:36 -07:00
Kartik K. Agaram d16dd9c6ce Merge text0 2023-03-19 00:08:08 -07:00
Kartik K. Agaram 398208cf26 Merge text.love 2023-03-19 00:04:53 -07:00
Kartik K. Agaram d2933583ca Merge text.love 2023-03-17 11:15:48 -07:00
Kartik K. Agaram cf12a0303f another missed rename 2023-03-15 00:30:37 -07:00
Kartik K. Agaram 91a5dd01cb fix file_drop callback 2023-01-20 14:18:04 -08:00
Kartik K. Agaram 5aad826a63 Merge text0 2023-01-19 22:25:37 -08:00
Kartik K. Agaram abb93a01f8 Merge text.love 2023-01-19 22:25:17 -08:00
Kartik K. Agaram b3c878ae94 Merge lines.love 2023-01-19 22:19:38 -08:00
Kartik K. Agaram 674042d4c7 no, turn vsync back on
I notice my laptop's fan starts coming on when running many of my apps.
An empty app takes 10% CPU where it used to take just 1-2%.
2023-01-19 22:14:08 -08:00
Kartik K. Agaram 535b0e11a4 drop non-existent arg in callback 2023-01-16 22:46:40 -08:00