Kartik K. Agaram
516944b572
support hyperlinks in the source editor
...
Integrated from the pensieve fork.
2022-09-05 14:16:55 -07:00
Kartik K. Agaram
e0f750913f
Merge lines.love
2022-09-05 12:47:27 -07:00
Kartik K. Agaram
fdb35ce12b
bugfix: save modified files in save directory
...
scenario: open app from .love file, press ctrl+e
Before this change the source file showed up empty.
2022-09-05 12:39:28 -07:00
Kartik K. Agaram
5ab541f160
.
2022-09-05 12:38:11 -07:00
Kartik K. Agaram
528c64d690
support drawings in the source editor
2022-09-05 11:29:39 -07:00
Kartik K. Agaram
9f94470f9d
include some missing source files
2022-09-05 08:41:26 -07:00
Kartik K. Agaram
fc98407c93
Merge lines.love
2022-09-03 21:19:46 -07:00
Kartik K. Agaram
7d5dae9e39
bugfix: cold start
2022-09-03 21:08:30 -07:00
Kartik K. Agaram
0c25c90d66
Merge lines.love
2022-09-03 19:48:12 -07:00
Kartik K. Agaram
1a6f533e2c
dedup points while loading drawing from disk
2022-09-03 19:24:40 -07:00
Kartik K. Agaram
a92ded7f49
Merge lines.love
2022-09-03 17:24:30 -07:00
Kartik K. Agaram
c6f88dccfa
set window title within each app
...
The main app shows the file being edited, but the programming environment does not.
2022-09-03 17:20:11 -07:00
Kartik K. Agaram
21efba975d
Merge lines.love
2022-09-03 17:15:25 -07:00
Kartik K. Agaram
5cada8cc9e
remember window positions across restart/ctrl+e
2022-09-03 17:00:58 -07:00
Kartik K. Agaram
9fe2af3e34
stray edit from source_text.lua
2022-09-03 15:44:23 -07:00
Kartik K. Agaram
9a1e297ee3
duplicate
2022-09-03 14:59:57 -07:00
Kartik K. Agaram
17fa0ec9e7
bugfix: window title
2022-09-03 14:51:52 -07:00
Kartik K. Agaram
84e2eafb0b
Merge lines.love
...
Just a placeholder to skip past changes lines.love pulled from us.
2022-09-03 14:44:19 -07:00
Kartik K. Agaram
e1c5a42f31
editing source code from within the app
...
integrated from pong.love via text.love:
https://merveilles.town/@akkartik/108933336531898243
2022-09-03 14:13:22 -07:00
Kartik K. Agaram
42762ce062
editing source code from within the app
...
integrated from pong.love: https://merveilles.town/@akkartik/108933336531898243
2022-09-03 13:58:30 -07:00
Kartik K. Agaram
8123959e52
Merge lines.love
2022-08-24 13:45:08 -07:00
Kartik K. Agaram
9c72ff1bb4
bugfix: propagate mouse press if any button would
...
Before this commit I was propagating press events only if _all_ buttons
would.
2022-08-24 13:40:36 -07:00
Kartik K. Agaram
89081a8a78
Merge lines.love
2022-08-24 13:34:10 -07:00
Kartik K. Agaram
ce31b74b10
infrastructure for caching LÖVE text objects
2022-08-24 13:27:04 -07:00
Kartik K. Agaram
39b2c849c4
Merge lines.love
2022-08-23 15:50:01 -07:00
Kartik K. Agaram
89222f86a0
set color for each fragment
...
In general it seems like good practice to minimize assumptions about
the current color.
2022-08-23 15:09:14 -07:00
Kartik K. Agaram
43dfa184d6
helper: trimming whitespace from strings
2022-08-23 15:06:18 -07:00
Kartik K. Agaram
aeaa7d150c
helper: file_exists
2022-08-23 15:04:30 -07:00
Kartik K. Agaram
d011c0ce32
Merge lines.love
2022-08-23 13:25:55 -07:00
Kartik K. Agaram
019a829279
make App.open_for_* look more like io.open
...
Now missing files will result in similar behavior: nil file handles.
2022-08-23 13:12:24 -07:00
Kartik K. Agaram
b6f42ebf01
pass all button params to the icon
2022-08-23 12:13:22 -07:00
Kartik K. Agaram
8747415461
allow buttons to nest as well
2022-08-23 11:48:52 -07:00
Kartik K. Agaram
468b791050
flip return value of button handlers
...
This is compatible with Javascript, and it also seems like a better
default; when people forget to think about return values in click
handlers, they should be consumed.
2022-08-23 11:43:10 -07:00
Kartik K. Agaram
8057f3e8fe
stop putting button state in a global
...
Symptom: a test (test_click_to_create_drawing) started randomly failing
after I inserted a `return` 2 commits ago.
Cause: my tests call edit.draw, but button handlers only get cleared in
app.draw. So my tests weren't clearing button handlers, and every call
to edit.draw was accumulating states. Still unclear why those were going
to different state objects after the `return`, but anyway. I'm not going
to understand every last thing that happens when things go wrong, just
guarantee they can't go wrong. And the way to do that is to decentralize
button handlers to each state that receives them.
The State object in buttons.lua doesn't have to be Editor_state. It just
has to be some table that provides a Schelling Point for shared state.
2022-08-23 10:59:58 -07:00
Kartik K. Agaram
ce79623231
improve explanation for buttons
2022-08-23 09:44:16 -07:00
Kartik K. Agaram
aadc50f3b6
allow buttons to interrupt events
...
Most button onpress1 handlers will want to return true.
2022-08-23 09:40:48 -07:00
Kartik K. Agaram
490f10c6f8
indent
2022-08-23 09:37:38 -07:00
Kartik K. Agaram
cfdac28e18
distinguish consistently between mouse buttons and other buttons
2022-08-23 09:36:08 -07:00
Kartik K. Agaram
eca4a725d1
Merge lines.love
2022-08-22 21:15:25 -07:00
Kartik K. Agaram
418ce8480a
include pensieve.love even though it's in development
2022-08-22 20:26:44 -07:00
Kartik K. Agaram
e2077858f7
Merge lines.love
...
Bring forks up to date.
2022-08-21 14:36:21 -07:00
Kartik K. Agaram
038f054ede
include a fork
2022-08-21 14:29:05 -07:00
Kartik K. Agaram
61eb87b03c
correct a comment
...
We no longer have undo history directly in globals.
2022-08-21 14:26:50 -07:00
Kartik K. Agaram
08b7318c0d
Merge lines.love
2022-08-19 17:11:47 -07:00
Kartik K. Agaram
13f67fa851
regression: dropping files on the window
...
Also improve the test to catch this next time.
2022-08-19 17:05:41 -07:00
Kartik K. Agaram
8d4346f3a8
Merge lines.love
2022-08-19 16:30:38 -07:00
Kartik K. Agaram
cbd8f678d2
fix a name
2022-08-19 16:27:38 -07:00
Kartik K. Agaram
fc9490c964
reclaim a couple more functions after tests
2022-08-19 10:29:48 -07:00
Kartik K. Agaram
0c7bc1812d
Merge lines.love
2022-08-18 13:48:33 -07:00
Kartik K. Agaram
dd15f15640
couple of accidental globals
...
Luckily they didn't bite me yet.
2022-08-18 13:37:14 -07:00