Commit Graph

17 Commits

Author SHA1 Message Date
Kartik K. Agaram 53f95cfce0 create comments directory if necessary 2023-10-20 00:13:11 -07:00
Kartik K. Agaram 2b0a3909a9 remember directory to browse across restart 2023-10-20 00:10:07 -07:00
Kartik K. Agaram b2785ac191 require the argument 2023-10-20 00:04:23 -07:00
Kartik K. Agaram 459b1df08a support browsing directories outside save dir 2023-10-20 00:00:38 -07:00
Kartik K. Agaram 82e073d667 make the data dir configurable 2023-07-16 14:47:49 -07:00
Kartik K. Agaram 32d53ba66d extract a variable 2023-07-16 14:22:36 -07:00
Kartik K. Agaram f5a693937f give up immediately if comments/ dir doesn't exist
Easiest way to prevent any chance of data loss.
2023-07-16 14:05:19 -07:00
Kartik K. Agaram da58273b3b Merge driver.love 2023-07-10 20:02:06 -07:00
Kartik K. Agaram aa416f5541 Merge luaML.love
This merge required fixing a problem in driver.love: load_settings now
only triggers when a settings file is present. It seems like better
practice to perform business logic within on.initialize.
on.load_settings should only be initializing globals.
2023-07-10 19:50:54 -07:00
Kartik K. Agaram 4d7a8ac4d1 bounds when panning by keyboard
This makes the keyboard navigation feel more solid.

I'm not bothering to do the same for panning with the mouse. Mostly
because I'm lazy, but also as an escape hatch in case I find myself
wanting to move the top lower down the screen or something. But it'll
still snap back the first time I pan using the keyboard. Let's see how
much it matters.
2023-06-23 22:45:55 -07:00
Kartik K. Agaram c8cd9bb6b6 start rendering file picker on the surface as well
This will make things more consistent in the long term, but I realize
one major cost: our button abstraction doesn't work well with luaML and
compute_layout. So we need something to replace it.
2023-06-21 22:28:56 -07:00
Kartik K. Agaram c37f204882 size font for file picker 2023-06-20 22:32:36 -07:00
Kartik K. Agaram 37d5358290 start rendering the initialized thread
This required a little more restructuring of Global_state. It's not flat
now, it's hierarchical again, but in a different way.

after commit 3d89b8eb9d:
  post
    \- reply A
        \- reply B
    \- reply C

after commit f9f7dab9b7:
  post
  reply A
  reply B
  reply C

after this commit:
  row
    \- col
        \- indent 0
        \- post
    \- col
        \- indent 1
        \- reply A
    \- col
        \- indent 2
        \- reply B
    \- col
        \- indent 1
        \- reply C

The indents are just invisible rectangles of different widths with 0
height.

One change I had to make was to initialize_editor. Neither luaML and
driver load lines from disk, but that's arguably the common scenario to
support.
2023-06-20 20:10:10 -07:00
Kartik K. Agaram fd5ca6f3f8 load in-memory data for a thread
Nothing displayed yet. I need to convert threads to Surface nodes.
2023-06-18 20:10:20 -07:00
Kartik K. Agaram 3917fa9d94 get rid of animation and editor movement
Editors also have some padding within their borders.
2023-06-18 13:04:18 -07:00
Kartik K. Agaram 2d5abe140b make order of files consistent with upstream
Luckily I only had a chance to mess this up in one fork.

And I don't need to actually make any changes because my definitions are
order-independent.
2023-04-22 18:50:18 -07:00
Kartik K. Agaram b138f1ff9b Merge template-live-editor 2023-04-16 11:30:56 -07:00