Commit 9e8d501
committed
feat: persist panel widths, enforce line limits, and improve font selection
Implemented four efficiency and usability improvements from the TODO list:
- Added Persistent Panel Widths: Debug, History, Settings, and Theme Editor panels now save and restore their user-adjusted widths.
- Improved History Capacity: Increased default limit to 1000 items. Modified logic so global limit changes only affect newly created files.
- Enforced Line Limit: Introduced a configurable line limit (default 1000) that truncates content and warns the user when exceeded. Can be disabled by setting it to 0.
- Enhanced Font Selection: Added support for confirming font choices with the "Enter" key in both UI and Editor font dropdowns.
- Refactored Editor Logic: Restructured the text editor's rendering loop to resolve borrow-checker issues and improve code maintainability.1 parent 16e5504 commit 9e8d501
5 files changed
Lines changed: 212 additions & 103 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
591 | 591 | | |
592 | | - | |
| 592 | + | |
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
596 | 602 | | |
597 | 603 | | |
598 | 604 | | |
599 | 605 | | |
600 | | - | |
| 606 | + | |
601 | 607 | | |
602 | | - | |
| 608 | + | |
603 | 609 | | |
604 | 610 | | |
605 | 611 | | |
606 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
607 | 619 | | |
608 | 620 | | |
609 | 621 | | |
610 | 622 | | |
611 | | - | |
| 623 | + | |
612 | 624 | | |
613 | | - | |
| 625 | + | |
614 | 626 | | |
615 | 627 | | |
616 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
617 | 635 | | |
618 | 636 | | |
619 | 637 | | |
620 | 638 | | |
621 | | - | |
| 639 | + | |
622 | 640 | | |
623 | | - | |
| 641 | + | |
624 | 642 | | |
625 | 643 | | |
626 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
627 | 651 | | |
628 | 652 | | |
629 | 653 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
83 | 100 | | |
84 | 101 | | |
| 102 | + | |
85 | 103 | | |
86 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
87 | 109 | | |
88 | 110 | | |
89 | 111 | | |
| |||
133 | 155 | | |
134 | 156 | | |
135 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
136 | 174 | | |
137 | 175 | | |
138 | 176 | | |
| |||
158 | 196 | | |
159 | 197 | | |
160 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
161 | 203 | | |
162 | 204 | | |
| 205 | + | |
163 | 206 | | |
164 | 207 | | |
165 | 208 | | |
| |||
0 commit comments