about summary refs log tree commit diff stats
path: root/edit.lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge lines.loveKartik K. Agaram2022-11-271-1/+1
|\
| * bugfixKartik K. Agaram2022-11-271-1/+1
| |
* | Merge lines.loveKartik K. Agaram2022-11-191-1/+4
|\|
| * ctrl+a: select entire bufferKartik K. Agaram2022-11-191-1/+4
| |
* | purge unused button infrastructureKartik K. Agaram2022-11-051-6/+0
| |
* | Merge lines.loveKartik K. Agaram2022-11-031-2/+2
|\|
| * stop tracking wallclock timeKartik K. Agaram2022-11-031-2/+2
| | | | | | | | We only need time differences.
* | Merge lines.loveKartik K. Agaram2022-09-101-1/+1
|\|
| * bugfix: path munging on WindowsKartik K. Agaram2022-09-101-1/+1
| |
* | Merge lines.loveKartik K. Agaram2022-09-071-1/+4
|\|
| * self-documenting 0 Test_right_marginKartik K. Agaram2022-09-071-1/+4
| |
* | Merge lines.loveKartik K. Agaram2022-09-051-3/+5
|\|
| * support drawings in the source editorKartik K. Agaram2022-09-051-3/+5
| |
| * editing source code from within the appKartik K. Agaram2022-09-031-9/+0
| | | | | | | | | | integrated from pong.love via text.love: https://merveilles.town/@akkartik/108933336531898243
* | editing source code from within the appKartik K. Agaram2022-09-031-5/+0
| | | | | | | | integrated from pong.love: https://merveilles.town/@akkartik/108933336531898243
* | Merge lines.loveKartik K. Agaram2022-08-241-0/+1
|\|
| * infrastructure for caching LÖVE text objectsKartik K. Agaram2022-08-241-0/+1
| |
* | Merge lines.loveKartik K. Agaram2022-08-231-12/+16
|\|
| * flip return value of button handlersKartik K. Agaram2022-08-231-2/+1
| | | | | | | | | | | | 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.
| * stop putting button state in a globalKartik K. Agaram2022-08-231-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * allow buttons to interrupt eventsKartik K. Agaram2022-08-231-1/+5
| | | | | | | | Most button onpress1 handlers will want to return true.
| * distinguish consistently between mouse buttons and other buttonsKartik K. Agaram2022-08-231-11/+11
| |
* | Merge lines.loveKartik K. Agaram2022-08-181-0/+2
|\|
| * subsection headings in a long switchKartik K. Agaram2022-08-181-0/+2
| |
* | Merge lines.loveKartik K. Agaram2022-08-171-5/+3
|\|
| * simplify cursor-on-screen checkKartik K. Agaram2022-08-171-5/+3
| |
* | bring back a level of wrappingKartik K. Agaram2022-08-151-2/+2
| | | | | | | | | | Many projects will require the ability to add metadata to lines, so let's not drop that.
* | clean up a few more loose endsKartik K. Agaram2022-08-141-4/+0
| |
* | new fork: rip out drawing supportKartik K. Agaram2022-08-141-186/+48
|/
* remove some duplicationKartik K. Agaram2022-08-141-6/+4
|
* bugfix: obsolete location for attributeKartik K. Agaram2022-08-141-2/+2
|
* click to the left of a lineKartik K. Agaram2022-07-291-2/+4
|
* copying to clipboard can never scrollKartik K. Agaram2022-07-271-1/+0
|
* line.y -> line_cache.starty in a few more placesKartik K. Agaram2022-07-271-8/+8
| | | | | | Disquieting that none of my tests caught these. On the other hand, I also haven't noticed any issues in practice. Perhaps cache invalidation is often unnecessary.
* have file API operate on state objectKartik K. Agaram2022-07-251-2/+2
|
* extract methodKartik K. Agaram2022-07-231-0/+11
|
* move drawing.starty into line cacheKartik K. Agaram2022-07-201-4/+4
|
* use line cache for drawings as wellKartik K. Agaram2022-07-201-4/+4
|
* separate data structure for each line's cache dataKartik K. Agaram2022-07-171-8/+13
| | | | I have no idea what the performance implications of this are..
* keep all text cache writes inside text.luaKartik K. Agaram2022-07-171-4/+3
|
* switch to line index in a functionKartik K. Agaram2022-07-171-2/+2
| | | | - Text.to_pos_on_line
* switch to line index in a functionKartik K. Agaram2022-07-171-2/+2
| | | | - Text.in_line
* drop some extra argsKartik K. Agaram2022-07-171-4/+4
|
* fold together two largely similar casesKartik K. Agaram2022-07-171-28/+23
|
* drop some redundant args from Text.drawKartik K. Agaram2022-07-171-3/+3
|
* formattingKartik K. Agaram2022-07-161-1/+1
|
* bring back a set of constantsKartik K. Agaram2022-07-161-7/+6
| | | | | It's starting to sink in that I don't want hard-coded constants inside objects.
* more precise nameKartik K. Agaram2022-07-151-3/+10
|
* make test initializations a little more obviousKartik K. Agaram2022-07-151-7/+17
|
* a bug I've never run intoKartik K. Agaram2022-07-131-2/+8
| | | | | | The previous commit was failing inside a test that I can't reproduce manually. Perhaps it's something about how often draw/update run in practice. Anyways, it's definitely uncovered a real issue.