Commit Graph

798 Commits

Author SHA1 Message Date
Kartik K. Agaram 8c373fdb60 get rid of all bifold text
It's just uneconomic to maintain given how little I've used it. I have a
bug right now and no time to port the bugfix to all the complexities of
the B side.

I briefly considered tossing out the entire source editor. But I _have_
been using it to browse logs across sessions. The live editor doesn't
quite cover all my use cases just yet.

We now have duplication in the source editor only for:
* syntax highlighting
* hyperlinking [[WikiWords]]
* ability to hide cursor (when showing file browser or Focus is in log browser)
2023-03-17 21:48:29 -07:00
Kartik K. Agaram ae429cd78a bring a few things in sync between run and source 2023-03-17 21:40:51 -07:00
Kartik K. Agaram 81ebc6a559 bugfix: disallow font size of 0
Thanks Mikoláš Štrajt.
2023-03-17 19:58:53 -07:00
Kartik K. Agaram d65b7950a1 state validation in source editor as well 2023-03-17 10:46:50 -07:00
Kartik K. Agaram e2c1bbe4e5 more robust state validation 2023-03-17 10:28:10 -07:00
Kartik K. Agaram 224e8fe85a bugfix
scenario:
  press ctrl+f, type in a string
  hit down arrow if needed until the screen scrolls
  press enter
  click with the mouse somewhere

Before this commit the app would crash because cursor was above screen
top.
2023-02-09 23:09:23 -08:00
Kartik K. Agaram f4e14ad484 document the version of LÖVE I've been using 2023-02-07 13:37:01 -08:00
Kartik K. Agaram 33ad6b7e5b bugfix: up arrow when line above is a drawing
This bug was introduced in commit 528c64d690 on 2022-09-05 :/
2023-01-31 22:39:04 -08:00
Kartik K. Agaram 266de35f87 create a place for graphical log handlers
Currently only used in pong.love, but let's keep the bad merge that had
it broken since September from occurring again. To do that we'll be
consistent across forks on where globals are initialized.

I haven't appreciated the implications of main.lua for load order.
log.lua comes first just because it's shared by both the main app and
its 'source' editing environment. And it just so happens that source.lua
was loading after log.lua resulting in the pong.love breakage. Now let's
lean into that and enshrine that one should initialize log_render in
log.lua.
2023-01-30 10:20:37 -08:00
Kartik K. Agaram 18f44c9761 wait a little to flush disk before quitting
I've been noticing in pensieve.love in particular that once a month or
so I lose data if I quit immediately after typing in something. Nothing
major, just the odd link between notes which leaves things in an
inconsistent state. Let's see if this helps.
2023-01-28 10:21:34 -08:00
Kartik K. Agaram 667f324a57 include instructions to install LÖVE 2023-01-24 18:46:40 -08:00
Kartik K. Agaram 90ba22371f demote codeberg.org in the list of mirrors
It's been slow to push to lately, so I'm going to update it less frequently.
2023-01-23 00:19:09 -08:00
Kartik K. Agaram 5cd5f54355 remove a condition 2023-01-22 22:12:58 -08:00
Kartik K. Agaram d13d0f9af0 clean up a print 2023-01-20 21:55:52 -08:00
Kartik K. Agaram bc95ec467b show another detail on test failure 2023-01-20 21:48:49 -08:00
Kartik K. Agaram 2a0a770c49 deduce test names on failures 2023-01-20 21:48:49 -08:00
Kartik K. Agaram a28e57205d link to default love.run for comparison 2023-01-20 21:07:59 -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 15f56341df correct comment; vsync is hard to reason about 2023-01-16 10:20:46 -08:00
Kartik K. Agaram e7b37e39de disable vsync
Thanks Nils Berg for the suggestion!
2023-01-16 09:50:32 -08:00
Kartik K. Agaram 0719fdeaaf hoist out some common settings 2023-01-16 09:48:06 -08:00
Kartik K. Agaram 22bf3da7de reduce use of rfind 2023-01-13 09:10:48 -08:00
Kartik K. Agaram e8ec87255f bugfix
lines.love was broken since Dec 23 X-( Didn't get caught because all my
tests start at edit, not at main or run. I need 'integration' tests.
2023-01-06 17:39:10 -08:00
Kartik K. Agaram c7de47440b typo 2023-01-01 17:59:10 -08:00
Kartik K. Agaram d6f955f144 fix stale comment 2023-01-01 09:14:08 -08:00
Kartik K. Agaram a9aa3436fa bugfix
Scenario: make some edits, select some text, make some more edits. Press
ctrl-z.

Before this commit, undo would stop at the point of selection and
previous edits would become unreachable.

After this commit, both ctrl-z and ctrl-y seem able to span the point of
selection.
2022-12-24 19:24:48 -08:00
Kartik K. Agaram 53fbb905e3 typo 2022-12-24 19:24:48 -08:00
Kartik K. Agaram f351ee2f8f fix some arg names 2022-12-23 20:43:37 -08:00
Kartik K. Agaram 7ef551b821 another missed rename 2022-12-23 20:43:30 -08:00
Kartik K. Agaram 8b9dab0c36 overzealous search-and-replace 2022-12-23 20:42:12 -08:00
Kartik K. Agaram e0448d7d7f consistent names in a few more places 2022-12-23 19:32:58 -08:00
Kartik K. Agaram 2b3e09ca0f make love event names consistent
I want the words to be easy to read, and to use a consistent tense.
update and focus seem more timeless; let's make everything like those.
2022-12-23 18:52:28 -08:00
Kartik K. Agaram e2e3aea2b1 require editor margins to be ints
Not directly relevant here, but forks of this project that permit
zooming can run into weird glitches if margins are not a whole number of
pixels.

I'd always assumed a type system that divided ints into floats was
strictly superior, but now I have experienced a situation where
requiring ints isn't just a compromise for the underlying CPU
implementation. Particularly since Lua's print() silently hides really
tiny fractions.
2022-12-23 16:57:04 -08:00
Kartik K. Agaram df0aec10d0 streamline one more test name 2022-12-13 09:50:36 -08:00
Kartik K. Agaram b0ce6156ec repeat changes on source editor 2022-12-13 09:45:57 -08:00
Kartik K. Agaram 03be29885f more streamlined test names
https://lobste.rs/messages/e1rimy
2022-12-13 09:43:55 -08:00
Kartik K. Agaram 2dd2b16295 remove a duplicate test 2022-12-13 09:05:31 -08:00
Kartik K. Agaram 1d27d59533 repeat bugfix on source editor X-( 2022-12-12 23:47:59 -08:00
Kartik K. Agaram d63178244b switch one call back to keychord_pressed
I don't understand why, but we need to fix production.
2022-12-12 23:31:50 -08:00
Kartik K. Agaram 39ffe7f411 switch a bunch of tests to textinput events
textinput is strictly more realistic than keychord_pressed, which
doesn't cause any textinput events. Use it wherever possible.
2022-12-12 23:18:42 -08:00
Kartik K. Agaram 92eccaea5a bugfix in changing shape mid-stroke 2022-12-12 23:17:02 -08:00
Kartik K. Agaram 35f81e5139 repeat bugfix on source editor 2022-12-12 22:50:08 -08:00
Kartik K. Agaram 8b30e0608b bugfix: naming points in drawings
We had a regression since commit 60e1023f0 on Nov 27. Turns out we do
need the ancient hack after all.

But no, we won't go back to the hack. It's a simple problem to fix
right. And while we're at it, we'll fix the test harness to be more
realistic so it would have caught this problem.
2022-12-12 22:31:45 -08:00
Kartik K. Agaram 076611fbb5 save state when clearing logs 2022-12-05 15:50:19 -08:00
Kartik K. Agaram f9bea7783b source editor: clear logs 2022-12-05 15:26:38 -08:00
Kartik K. Agaram 0167c57cdf consume a mouse click when switching sides
This way we can have the log side actually take focus sometimes.
2022-12-05 15:04:54 -08:00
Kartik K. Agaram a8a8965b1b compare nested tables 2022-11-30 23:03:50 -08:00
Kartik K. Agaram 4335669ecc repeat bugfix on source editor 2022-11-27 22:27:23 -08:00
Kartik K. Agaram 7557e0904a bugfix 2022-11-27 22:20:26 -08:00
Kartik K. Agaram 60e1023f0b undo an ancient hack; be an idiomatic LÖVE app 2022-11-27 13:10:23 -08:00