about summary refs log tree commit diff stats
path: root/search.lua
Commit message (Collapse)AuthorAgeFilesLines
* bugfix: searching files containing unicodeKartik K. Agaram2023-05-131-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 TextKartik K. Agaram2023-04-011-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 rfindKartik K. Agaram2023-01-131-0/+2
|
* support special chars like '(' in searchKartik K. Agaram2022-09-181-8/+8
|
* editing source code from within the appKartik K. Agaram2022-09-031-12/+8
| | | | | integrated from pong.love via text.love: https://merveilles.town/@akkartik/108933336531898243
* generalize a functionKartik K. Agaram2022-08-181-2/+2
|
* drop some obsolete argsKartik K. Agaram2022-08-181-2/+2
|
* swap return valuesKartik K. Agaram2022-08-171-2/+2
|
* bugfix: check after cursor on same line when searching upwardsKartik K. Agaram2022-08-111-1/+9
|
* search: transparently handle drawings everywhereKartik K. Agaram2022-08-111-22/+18
|
* bugfix: search upwardsKartik K. Agaram2022-08-111-1/+1
|
* bugfix: check before cursor on same lineKartik K. Agaram2022-08-111-1/+12
|
* update cursor in search boxKartik K. Agaram2022-07-251-3/+1
|
* bugfix: skip over drawings when searchingKartik K. Agaram2022-07-251-8/+15
|
* left/right margin -> left/right coordinatesKartik K. Agaram2022-07-121-2/+2
| | | | | Editor state initialization now depends on window dimensions, so we have to more carefully orchestrate startup.
* add state arg to a few functionsKartik K. Agaram2022-07-121-38/+38
| | | | | - Text.search_next - Text.search_previous
* add state arg to some functionsKartik K. Agaram2022-07-121-6/+6
| | | | | | - Text.draw - Text.draw_cursor - Text.draw_search_bar
* group all editor globalsKartik K. Agaram2022-07-121-41/+41
| | | | We're still accessing them through a global. But we'll change that next.
* make colors easier to editKartik K. Agaram2022-07-111-3/+3
|
* add args to some functionsKartik K. Agaram2022-07-081-2/+2
| | | | - Text.pos_at_start_of_cursor_screen_line
* extract a couple of filesKartik K. Agaram2022-06-031-0/+114
5'>395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494