Commit Graph

186 Commits

Author SHA1 Message Date
Leonard Hecker
da1db8fba2 Fix word-wrap toggling 2025-05-05 23:57:31 +02:00
Leonard Hecker
1433aadda4 Improve the ErrorIcuMissing wording 2025-05-05 23:57:01 +02:00
Leonard Hecker
6619199158 Fix pipeline fetching from the wrong registry 2025-05-05 22:17:04 +02:00
Leonard Hecker
59ebaeb1b2 Fix compiling with stable 1.86 2025-05-05 21:31:35 +02:00
Leonard Hecker
c4e6599920 Fix drag-scrolling jumping randomly 2025-05-05 16:05:54 +02:00
Leonard Hecker
56792241de Home/End for scroll and list views 2025-05-05 15:58:45 +02:00
Leonard Hecker
e8468c6cf1 Fix x86 compilation (still not a priority target) 2025-05-05 15:13:42 +02:00
Leonard Hecker
7f4c71e759 Use an arena for allocating the NodeTree 2025-05-05 15:13:30 +02:00
Leonard Hecker
ccac6e6992 Handle OOM more gracefully 2025-05-05 15:11:01 +02:00
Leonard Hecker
7a7255b8b7 Add SI/IEC unit helpers & Fix scratch arena size 2025-05-05 15:09:36 +02:00
Leonard Hecker
1176e58dc1 Rename UcdCursor to Cursor & Simplify Default 2025-05-04 23:15:02 +02:00
Leonard Hecker
abdec836a6 Only close 1 editor on Ctrl-W 2025-05-04 23:04:19 +02:00
Leonard Hecker
20befc69b9 Fix newline translation on undo/redo 2025-05-04 21:12:40 +02:00
Leonard Hecker
556064aba3 Backspace for navigating up in the file picker 2025-05-04 19:06:39 +02:00
Leonard Hecker
046ff8eb08 Fix paste of newlines deadlocking 2025-05-04 16:44:51 +02:00
Leonard Hecker
95b3ffab1d Fix redo not restoring the buffer generation 2025-05-04 16:44:23 +02:00
Leonard Hecker
6071516697 Implement PgUp/Down for scrollviews and lists 2025-05-04 16:19:31 +02:00
Leonard Hecker
a4daf782bc Fix position jitter when reflowing modals 2025-05-04 16:19:12 +02:00
Leonard Hecker
d7b1e4c386 Show the directory in the tab picker 2025-05-04 16:10:00 +02:00
Leonard Hecker
b1a8776d8c Add ellipsis support to styled labels 2025-05-03 01:19:48 +02:00
Leonard Hecker
b88a2e0725 Fix path/filename not updating on first save 2025-05-03 01:07:25 +02:00
Leonard Hecker
905106e32b Use inodes for file dedup & Add support for symlinks 2025-05-01 14:42:42 +02:00
Leonard Hecker
b7024f1bf9 Adopt rustfmt.toml from rust-lang/rust 2025-05-01 14:39:44 +02:00
Leonard Hecker
d82a1659b6 Add ScratchArena and use it where possible 2025-05-01 13:59:57 +02:00
Leonard Hecker
e7bd798f28 Some minor project layout cleanup 2025-04-30 12:40:28 +02:00
Dustin L. Howett
d39c816d59 statusbar: display the dirty indicator in the ^P document list (#8) 2025-04-28 13:38:44 -07:00
Leonard Hecker
08ccba35a4 Multi-document support lfg
This commit contains a truly marvelous number of other changes,
which however the margin is not large enough to contain.
2025-04-28 18:39:19 +02:00
Leonard Hecker
a9d1f0a94b Implement basic (unoptimized) line unindent 2025-04-24 17:55:57 +02:00
Leonard Hecker
c799c347f5 Fix new clippy warnings 2025-04-24 16:16:51 +02:00
Leonard Hecker
c0f7a1bfaf I can't stand cyan after all 2025-04-21 18:05:41 +02:00
Leonard Hecker
755bd6617e Improve scroll/find performance in large files 2025-04-21 18:05:11 +02:00
Dustin L. Howett
c137197a9f sys/unix: Fix for icu_proc_suffix ee5b5a0 (#6) 2025-04-18 18:25:10 +02:00
Leonard Hecker
67b9a9fecd Implement menubar checkboxes 2025-04-17 21:02:33 +02:00
Leonard Hecker
c7dcf97208 Give the menu/statusbar a distinct color 2025-04-17 21:02:23 +02:00
Leonard Hecker
6cbe4b3a1a Add support for triple/quadruple clicks 2025-04-17 15:44:12 +02:00
Leonard Hecker
7d03468687 Fix performance of seeking downwards in large files 2025-04-16 22:34:57 +02:00
Leonard Hecker
ccd158e316 Remove the memchr tail-end fast-pass again
I found that on real text files it performs ever so slightly worse.
2025-04-16 22:34:08 +02:00
Leonard Hecker
86f5784120 Add support for OSC 52 clipboard sequences 2025-04-16 21:53:55 +02:00
Leonard Hecker
c98b1778ff Make statusbar keyboard navigation easier 2025-04-16 17:08:57 +02:00
Leonard Hecker
5048020ccc Implement :line:col suffixes for file paths 2025-04-16 16:51:51 +02:00
Leonard Hecker
3864c52eae Change OSC title to better conform to other Windows apps 2025-04-16 15:55:07 +02:00
Leonard Hecker
c200de66e4 Improve selection highlight contrast 2025-04-16 15:52:00 +02:00
Leonard Hecker
8997788602 Enable the memchr tail-end fast-pass 2025-04-16 15:19:46 +02:00
Leonard Hecker
2981345a7b Implement vectorized memset & use opt-level=s 2025-04-16 15:19:03 +02:00
Leonard Hecker
2a4bd6dc6d Improve indentation detection logic 2025-04-16 02:55:47 +02:00
Leonard Hecker
1093bb71da Fix lifetime issues around RcTextBuffer/undo/redo 2025-04-14 16:46:50 +02:00
Leonard Hecker
2bc2efc5f2 Give the UTF8 parser a size hint 2025-04-14 16:42:32 +02:00
Leonard Hecker
8187dea4d1 Use arena allocators for tui.rs
It is funny to ballpark the cost of heap allocations on Windows and
realize you're 10x off. mimalloc shows that it could be way better.
Well, in mimalloc's absence, this PR does the next best thing:
A cheap arena/bump allocator. Works great for building the UI tree,
and makes the lifetime management a bit better. There's one hotspot
left in `render_node` which still allocates `String`s to create fills.
Would be great if Rust had better allocator support though.......
2025-04-14 02:45:26 +02:00
Leonard Hecker
a8b0980897 Fix selection highlight at the end of the document 2025-04-13 03:26:10 +02:00
Leonard Hecker
323513127e Fix missing localizations 2025-04-13 01:53:35 +02:00