Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use editor state font for width calculations | Kartik K. Agaram | 2024-01-12 | 1 | -1/+1 |
| | |||||
* | audit all asserts | Kartik K. Agaram | 2023-11-18 | 1 | -1/+1 |
| | | | | | | | | | | | | | Each one should provide a message that will show up within LÖVE. Stop relying on nearby prints to the terminal. I also found some unnecessary ones. There is some potential here for performance regressions: the format() calls will trigger whether or not the assertion fails, and cause allocations. So far Lua's GC seems good enough to manage the load even with Moby Dick, even in some situations that caused issues in the past like undo. | ||||
* | rfind bugfix: handle empty pattern like string.find | Kartik K. Agaram | 2023-10-15 | 1 | -0/+2 |
| | |||||
* | add some tests for rfind | Kartik K. Agaram | 2023-10-15 | 1 | -0/+7 |
| | |||||
* | bugfix: searching files containing unicode | Kartik K. Agaram | 2023-05-13 | 1 | -28/+42 |
| | | | | | Before this change the cursor was moving, but not being highlighted properly when the cursor line contained unicode before the cursor. | ||||
* | App.width can no longer take a Text | Kartik K. Agaram | 2023-04-01 | 1 | -4/+1 |
| | | | | | In the process I discovered the horrible fact that Text.x allocates a new Text. And it gets called (just once, thank goodness) on every single frame. | ||||
* | reduce use of rfind | Kartik K. Agaram | 2023-01-13 | 1 | -0/+2 |
| | |||||
* | support special chars like '(' in search | Kartik K. Agaram | 2022-09-18 | 1 | -8/+8 |
| | |||||
* | editing source code from within the app | Kartik K. Agaram | 2022-09-03 | 1 | -12/+8 |
| | | | | | integrated from pong.love via text.love: https://merveilles.town/@akkartik/108933336531898243 | ||||
* | generalize a function | Kartik K. Agaram | 2022-08-18 | 1 | -2/+2 |
| | |||||
* | drop some obsolete args | Kartik K. Agaram | 2022-08-18 | 1 | -2/+2 |
| | |||||
* | swap return values | Kartik K. Agaram | 2022-08-17 | 1 | -2/+2 |
| | |||||
* | bugfix: check after cursor on same line when searching upwards | Kartik K. Agaram | 2022-08-11 | 1 | -1/+9 |
| | |||||
* | search: transparently handle drawings everywhere | Kartik K. Agaram | 2022-08-11 | 1 | -22/+18 |
| | |||||
* | bugfix: search upwards | Kartik K. Agaram | 2022-08-11 | 1 | -1/+1 |
| | |||||
* | bugfix: check before cursor on same line | Kartik K. Agaram | 2022-08-11 | 1 | -1/+12 |
| | |||||
* | update cursor in search box | Kartik K. Agaram | 2022-07-25 | 1 | -3/+1 |
| | |||||
* | bugfix: skip over drawings when searching | Kartik K. Agaram | 2022-07-25 | 1 | -8/+15 |
| | |||||
* | left/right margin -> left/right coordinates | Kartik K. Agaram | 2022-07-12 | 1 | -2/+2 |
| | | | | | Editor state initialization now depends on window dimensions, so we have to more carefully orchestrate startup. | ||||
* | add state arg to a few functions | Kartik K. Agaram | 2022-07-12 | 1 | -38/+38 |
| | | | | | - Text.search_next - Text.search_previous | ||||
* | add state arg to some functions | Kartik K. Agaram | 2022-07-12 | 1 | -6/+6 |
| | | | | | | - Text.draw - Text.draw_cursor - Text.draw_search_bar | ||||
* | group all editor globals | Kartik K. Agaram | 2022-07-12 | 1 | -41/+41 |
| | | | | We're still accessing them through a global. But we'll change that next. | ||||
* | make colors easier to edit | Kartik K. Agaram | 2022-07-11 | 1 | -3/+3 |
| | |||||
* | add args to some functions | Kartik K. Agaram | 2022-07-08 | 1 | -2/+2 |
| | | | | - Text.pos_at_start_of_cursor_screen_line | ||||
* | extract a couple of files | Kartik K. Agaram | 2022-06-03 | 1 | -0/+114 |