about summary refs log tree commit diff stats
path: root/edit.lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge text.loveKartik K. Agaram2025-05-061-4/+4
|\
| * Merge lines.loveKartik K. Agaram2025-05-061-4/+4
| |\
| | * plumb through all supported args in LÖVE handlersKartik K. Agaram2025-05-061-7/+7
| | | | | | | | | | | | | | | | | | I just noticed that the is_touch arg in mouse handlers is extremely useful for arbitrating between events on a mobile device. And I'd totally forgotten about its existence X-(
| | * bugfix: scrolling up using scroll wheelKartik K. Agaram2025-01-221-6/+6
| | | | | | | | | | | | | | | The culprit is an ambiguously named helper. put_cursor_on_next_text_line is not supposed to move to next line if the current line is text.
* | | Merge text.loveKartik K. Agaram2024-10-291-23/+1
|\| |
| * | Merge lines.loveKartik K. Agaram2024-10-291-23/+1
| |\|
| | * simpler implementation of bugfix #2Kartik K. Agaram2024-10-291-23/+1
| | |
* | | Merge text.loveKartik K. Agaram2024-10-291-4/+4
|\| |
| * | some more renamesKartik K. Agaram2024-10-291-4/+4
| | |
* | | Merge text.loveKartik K. Agaram2024-10-291-2/+26
|\| |
| * | Merge lines.loveKartik K. Agaram2024-10-291-2/+26
| |\|
| | * bugfix #3, attempt #2 in search UIKartik K. Agaram2024-10-291-2/+4
| | | | | | | | | | | | Avoid accidental side-effects.
| | * bugfix #3 in search UIKartik K. Agaram2024-10-291-7/+3
| | | | | | | | | | | | | | | This is a regression. Scenario: search for a string, then backspace until it goes empty.
| | * bugfix #2 in search UIKartik K. Agaram2024-10-291-3/+7
| | |
| | * bugfix in search UIKartik K. Agaram2024-10-291-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This one is ancient and it affects every single one of my forks, including the whole lines2 lineage. The corner case: searching for empty string. In the process I've also cleaned up edit.check_locs on initialization to only modify cursor if it can find a legal place for it. In general I should be more careful about mutating the cursor. Just adding 1 to it is irresponsible.
* | | Merge text.loveKartik K. Agaram2024-09-191-1/+1
|\| |
| * | Merge lines.loveKartik K. Agaram2024-09-191-1/+1
| |\|
| | * transparent highlights work with more colorsKartik K. Agaram2024-09-191-1/+1
| | |
* | | Merge text.loveKartik K. Agaram2024-09-101-1/+0
|\| |
| * | Merge lines.loveKartik K. Agaram2024-09-101-1/+0
| |\|
| | * don't always pop up keyboard on mobile devicesKartik K. Agaram2024-09-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | We don't want to do this during app initialization because other forks might not start out with an editor on screen even if this one does. We don't want to perform this side-effect on edit.mouse_press, which also runs in tests.
* | | Merge text.loveKartik K. Agaram2024-09-011-1/+1
|\| |
| * | Merge lines.loveKartik K. Agaram2024-09-011-2/+2
| |\|
| | * explicitly state when operations manage undoKartik K. Agaram2024-08-311-2/+2
| | |
| | * clean up Drawing.before after creating undo eventKartik K. Agaram2024-08-311-0/+1
| | | | | | | | | | | | This isn't a bug here, but it led to a bug in lines 2.
* | | Merge text.loveKartik K. Agaram2024-08-061-2/+0
|\| |
| * | Merge lines.loveKartik K. Agaram2024-08-061-2/+0
| |\|
| | * stop returning unused valueKartik K. Agaram2024-07-281-2/+0
| | |
* | | Merge text.loveKartik K. Agaram2024-07-221-1/+0
|\| |
| * | Merge lines.loveKartik K. Agaram2024-07-221-2/+1
| |\|
| | * consistently schedule_save after all mutationsKartik K. Agaram2024-07-161-3/+3
| | |
* | | Merge text.loveKartik K. Agaram2024-07-101-2/+2
|\| |
| * | Merge lines.loveKartik K. Agaram2024-07-101-2/+2
| |\|
| | * patch a vector for memory leaksKartik K. Agaram2024-07-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Multiple editors in an app shouldn't create duplicate font objects. Not strictly needed for this app, but feels hard-won enough I want to pull this in from Carousel to all forks. This still isn't ideal. Ideally we'd automatically share the font.
* | | Merge text.loveKartik K. Agaram2024-07-091-1/+1
|\| |
| * | Merge lines.loveKartik K. Agaram2024-07-091-6/+3
| |\|
| | * delete some seemingly redundant codeKartik K. Agaram2024-07-081-1/+0
| | | | | | | | | | | | | | | We're patching line_cache and then immediately clearing it using Text.redraw_all.
| | * purge obsolete term 'fragment'Kartik K. Agaram2024-07-081-5/+3
| | |
* | | Merge text.loveKartik K. Agaram2024-06-271-2/+5
|\| | | | | | | | | | | | | | I'm going to pull some shared code into the same place as upstream forks, just to reduce future merge conflicts.
| * | Merge lines.loveKartik K. Agaram2024-06-271-2/+5
| |\|
| | * use deepcopy where possibleKartik K. Agaram2024-06-231-2/+2
| | | | | | | | | | | | It's shorter and conveys intent better.
| | * bugfix: restart search on backspaceKartik K. Agaram2024-06-231-0/+3
| | | | | | | | | | | | | | | | | | This feels better when I press a few keys, then backspace and press new keys. It might be confusing if I hit 'down' a few times then backspace, but I seldom do that.
* | | Merge text.loveKartik K. Agaram2024-06-211-1/+0
|\| |
| * | merge bugfix X-(Kartik K. Agaram2024-06-211-1/+0
| | | | | | | | | | | | | | | | | | Looks to have first been introduced in Sep 2023. (Merge commit 09c76c82c2, though git's merge commits are hard to read. Yes, looks like commit 0a12e4c733 didn't get merged right.)
* | | Merge text.loveKartik K. Agaram2024-06-161-2/+1
|\| |
| * | Merge lines.loveKartik K. Agaram2024-06-161-2/+1
| |\|
| | * update a stale commentKartik K. Agaram2024-06-161-2/+1
| | |
* | | Merge text.loveKartik K. Agaram2024-06-111-15/+9
|\| |
| * | Merge lines.loveKartik K. Agaram2024-06-111-15/+9
| |\|
| | * stop caching startyKartik K. Agaram2024-06-111-8/+1
| | | | | | | | | | | | | | | This is quite useful because I used to have a long list of places in which to invalidate the cache.