Commit Graph

1847 Commits

Author SHA1 Message Date
Kartik K. Agaram fecff08fcf Merge carousel.love 2024-05-20 01:09:35 -07:00
Kartik K. Agaram 9d71792239 remove one fiddly bit we no longer need 2024-05-20 00:52:48 -07:00
Kartik K. Agaram affa108ecf fix a long-standing issue with tooltips
scenario:
- open Carousel with more than one screen, so that there are buttons on
  the left and right margins
- move the mouse rapidly towards the left or right off the edge of the
  screen

Before this commit, the tooltip would remain showing after the mouse
went off window. (Things were fine if the mouse moved slowly off window;
then LÖVE had a chance to record the mouse coordinate on the edge before
it went off edge.)
2024-05-20 00:47:43 -07:00
Kartik K. Agaram 305542401b bugfix 2024-05-20 00:40:05 -07:00
Kartik K. Agaram ef71fef7b9 Merge carousel.love 2024-05-20 00:04:55 -07:00
Kartik K. Agaram 1b2e041792 Merge template-live-editor-mobile 2024-05-20 00:02:53 -07:00
Kartik K. Agaram 975ea92569 Merge template-live-editor 2024-05-20 00:01:06 -07:00
Kartik K. Agaram fcccbebe39 Merge text0 2024-05-19 23:52:40 -07:00
Kartik K. Agaram 48b5d7fb48 Merge text.love 2024-05-19 23:45:00 -07:00
Kartik K. Agaram a244738b01 Merge lines.love 2024-05-19 23:30:56 -07:00
Kartik K. Agaram 3e0cb2ed10 document recent handlers 2024-05-19 23:13:52 -07:00
Kartik K. Agaram c622737166 Merge lines.love 2024-05-19 23:11:27 -07:00
Kartik K. Agaram 8219db2bcd mousefocus handler 2024-05-19 22:41:52 -07:00
Kartik K. Agaram b6102d0489 mousemoved handler 2024-05-19 22:40:27 -07:00
Kartik K. Agaram b5b5234613 only show tooltips when window in focus 2024-05-19 22:27:19 -07:00
Kartik K. Agaram 665e80f780 update list of forks 2024-03-23 09:11:11 -07:00
Kartik K. Agaram 5ea87b8599 stop using nativefs for file location
nativefs doesn't work on iOS since LÖVE v11.5, so I should stop using it
at least on forks for mobile devices.

I still use it in a couple of cases:
* on a file DELETE request from the driver
* when trying to write modifications from the driver to the original
  location
2024-03-23 09:01:41 -07:00
Kartik K. Agaram 29b8fc4142 Merge carousel.love 2024-03-22 18:36:55 -07:00
Kartik K. Agaram e848a890ef shield script from touch events when showing editor 2024-03-22 17:29:29 -07:00
Kartik K. Agaram 6c65b5dcdb unstash a stashed file
Current design choices:
* Unstashing doesn't delete the file. You have to bump down to the
  scratch screen for that.
* Can't unstash if the file already has local modifications. Decide
  whether to revert or stash them.
2024-03-17 15:22:53 -07:00
Kartik K. Agaram ab11782662 add numeric suffix to stashed files 2024-03-17 15:02:45 -07:00
Kartik K. Agaram bd82e5ecbb load stashed files
I'm scaling down my ambitions. Stashed files can't have notes attached.
I think that encourages a higher scale of development on such apps than
is currently justified, given you're liable to lose all your work if you
upgrade LÖVE.

New plan: just name stashed files with a numeric suffix.

The remaining open question is now around unstash. Should unstash copy
or move?
2024-03-17 14:38:42 -07:00
Kartik K. Agaram fc75f62d17 start implementing stashed files
We can create them and see them on the file dialogs, but not yet load
them back.

I want stashed files to remember the original filename. I think that
implies the ability to add a note to them. But I don't yet know how to
represent the note on disk.

And this creates cascading questions, like should editing a stash file
continue to modify it or create a new version? How to create a new
version? Should unstash copy or move?
2024-03-17 13:54:20 -07:00
Kartik K. Agaram ec7f0bbe6e indicate local modifications in load/save dialog 2024-03-17 12:37:21 -07:00
Kartik K. Agaram 8508638582 new menu option: revert local changes 2024-03-17 12:12:31 -07:00
Kartik K. Agaram 9246567511 indicate local modifications in editor title bar 2024-03-17 12:01:49 -07:00
Kartik K. Agaram bd96e36304 Merge carousel.love 2024-03-17 11:58:28 -07:00
Kartik K. Agaram a7fb944976 use an available constant 2024-03-17 11:56:42 -07:00
Kartik K. Agaram 95f34d5b68 Merge carousel.love 2024-03-17 11:49:27 -07:00
Kartik K. Agaram 1f42711dde indicate unsaved changes 2024-03-17 11:01:25 -07:00
Kartik K. Agaram 6c596c0bcd hoist next_save to all saves
Now we can rely on its state even when we don't rely on autosave.
2024-03-17 10:54:26 -07:00
Kartik K. Agaram fff4dc198c explicitly state stance on autosave 2024-03-17 10:49:45 -07:00
Kartik K. Agaram 9fa94fd169 Merge carousel.love 2024-03-17 08:10:12 -07:00
Kartik K. Agaram ff27ad6ad4 swap copy and paste menu buttons
Scenario: every once in a while I try to paste on my phone (in the
overflow menu) and fat finger and tap 'clear' next to it instead.

I could try adding space between the buttons in the overflow menu, but
that creates cascading issues of how it should look. Swapping these two
buttons is a hacky way to ensure that buttons that mutate the buffer
are never side by side.
2024-03-17 08:04:13 -07:00
Kartik K. Agaram e0f0922c8f Merge carousel.love 2024-03-16 09:31:31 -07:00
Kartik K. Agaram c413f281cf add to list of forks 2024-03-16 09:30:18 -07:00
Kartik K. Agaram 180e582e58 standardize some copy between forks 2024-03-15 23:44:37 -07:00
Kartik K. Agaram 9dfd8fbf3e document gotchas on mobile 2024-03-15 23:03:50 -07:00
Kartik K. Agaram cd278f9a85 new fork: a template for carousel-based apps 2024-03-15 22:52:27 -07:00
Kartik K. Agaram fe06035b9d Merge carousel.love 2024-03-14 10:27:27 -07:00
Kartik K. Agaram bfc1f80b87 no, go back to drawing the menu after the editor
I originally made this change to keep the next/prev buttons from
overwriting the search bar. But now the dropdown menu up top gets
overwritten by the scrollbars! You can only see it if the window width
is just right, as happens on my phone.

I could fix this perfectly, but at the cost of some code complexity.
Just take that slight visual ugliness for now, it doesn't seem to impede
anything.
2024-03-14 10:19:27 -07:00
Kartik K. Agaram 5a217abf84 Merge carousel.love 2024-03-12 23:15:14 -07:00
Kartik K. Agaram 08f3b08f0e draw code editor after menu and output
scenario:
* run Carousel on a computer
* press ctrl+f

Before this commit, the search dialog that came up was occluded by the
output editor's scrollbar.
2024-03-12 23:08:07 -07:00
Kartik K. Agaram 31668ef53a Merge carousel.love 2024-03-10 22:34:33 -07:00
Kartik K. Agaram b710439890 Merge template-live-editor-mobile 2024-03-10 22:32:25 -07:00
Kartik K. Agaram 7fab028c1e Merge template-live-editor 2024-03-10 22:28:20 -07:00
Kartik K. Agaram 8d3bfa6ba0 stop recommending the terminal
Freewheeling apps have been stable for many months now.
2024-03-10 22:25:28 -07:00
Kartik K. Agaram ffb6a2919d Merge carousel.love 2024-03-10 21:47:46 -07:00
Kartik K. Agaram 960380b880 Merge template-live-editor-mobile 2024-03-10 21:46:51 -07:00
Kartik K. Agaram 5de5cdaf11 Merge template-live-editor 2024-03-10 21:41:58 -07:00