Commit Graph

129 Commits

Author SHA1 Message Date
Leonard Hecker
7f514b32f6 Add mandatory Microsoft project files 2025-04-07 14:51:17 +02:00
Leonard Hecker
b2d1f1f532 Fix scrollbar jumping after releasing it over the menubar 2025-04-07 01:28:11 +02:00
Leonard Hecker
5a423e26b0 Fix scrollbar thumb calculation 2025-04-07 01:25:58 +02:00
Leonard Hecker
42a86e7a86 Use OSC sequences to update the terminal title 2025-04-05 22:44:44 +02:00
Leonard Hecker
fce1fd94c2 Fix dismissing of nested modals with Escape 2025-04-05 21:50:39 +02:00
Leonard Hecker
2da95206de Fix word wrap of the last word on a logical line 2025-04-05 21:43:11 +02:00
Leonard Hecker
703fce4975 Fix selection highlight across newlines 2025-04-05 21:42:57 +02:00
Leonard Hecker
3ef5b352a2 Update the search needle only if the user selects something 2025-04-05 20:51:50 +02:00
Leonard Hecker
46ed16d2fe Restrict horizontal scrolling within -/+10 of the cursor 2025-04-05 20:32:25 +02:00
Leonard Hecker
5de58de018 Restore functionality of semi-transparent floaters 2025-04-05 18:50:01 +02:00
Leonard Hecker
5bd1258028 Fix double click word selection boundaries 2025-04-05 18:49:44 +02:00
Leonard Hecker
f5e3ff1b4d Stop moving the cursor when clicking the scrollbar 2025-04-05 18:00:21 +02:00
Leonard Hecker
d17e857a46 Make it possible to blend reversed colors 2025-04-05 16:55:33 +02:00
Leonard Hecker
c83ffa8c09 Dim the background behind modals 2025-04-05 16:55:05 +02:00
Leonard Hecker
1c73cf401c Disable line highlight during selections 2025-04-05 16:52:33 +02:00
Leonard Hecker
04a7fb3970 Fix early exit when showing --help 2025-04-05 01:10:26 +02:00
Leonard Hecker
7eb14b991c Only try kernelbase if the full symbol lookup failed 2025-04-05 00:19:14 +02:00
Leonard Hecker
167c5aa447 Fix soft deadlock when ICU is missing 2025-04-04 23:54:51 +02:00
Leonard Hecker
70f3cee679 Fix starting edit with a directory as the given path 2025-04-04 22:45:17 +02:00
Leonard Hecker
d8aaf99994 Fix timeouts and setting up raw mode on UNIX 2025-04-04 22:44:21 +02:00
Leonard Hecker
cf8c78a992 Prevent the cursor from moving around randomly 2025-04-04 16:05:00 +02:00
Leonard Hecker
60cfa1018e Mimic VS Code's arrow key behavior when there's a selection 2025-04-04 15:58:47 +02:00
Leonard Hecker
54c2db141f Fix polled reads for unix 2025-04-04 02:52:14 +02:00
Leonard Hecker
f7be487c95 Fix support for Windows 10 1703 2025-04-04 02:42:07 +02:00
Leonard Hecker
ceafeb8e48 Add a fallback to kernelbase.dll for kernel32.dll 2025-04-04 00:28:14 +02:00
Leonard Hecker
e45c504ab0 Don't reopen stdout on startup
If it's not a TTY we should just exit, because then the user probably
ran edit by accident anyway. It doesn't make much sense to redirect
the output of any interactive application.
2025-04-03 23:58:06 +02:00
Leonard Hecker
2965ab42a5 Fix newline switcher not tossing focus up 2025-04-03 18:13:02 +02:00
Leonard Hecker
87a3bbda6d Fix pasting of multiline text via bracketed paste
Bracketed paste uses CR as its newline delimiter.
2025-04-03 18:09:22 +02:00
Leonard Hecker
fa5a40c036 Use Ctrl+R for replace, because Ctrl+H is Ctrl+Backspace 2025-04-03 16:38:04 +02:00
Leonard Hecker
3064225903 Add basic --help and --version messages 2025-04-03 16:30:47 +02:00
Leonard Hecker
47ad3599ce Switch to raw mode only after we're done reading 2025-04-03 16:19:20 +02:00
Leonard Hecker
863fa7ce5a Prefer reading from stdin over reading a given path 2025-04-03 15:59:01 +02:00
Leonard Hecker
234a8181ea (Hopefully) Fix spurious wakeups under read timeouts
I received a bug report about a random mouse tracking sequence being
written to the text buffer after clicking on the LF/CRLF button.
Noticeably, there was no "Esc" character visualizer in the buffer.
This leads me to believe that the VT parser ran into the ESC state
timeout handling (to detect lone ESC chars) and we had a spurious wakeup
from the stdin read() afterward, which resulted in a empty return value,
and lead the VT parser to believe it was truly an ESC key press.
2025-04-03 15:45:00 +02:00
Leonard Hecker
a8d0226add Fix left/right keys in tables with nested focus 2025-04-03 02:25:34 +02:00
Leonard Hecker
2b450c90ca Bind Ctrl+W to word-wise delete
...because Ctrl+Backspace is the same as Ctrl+H and that's bound to
opening Find & Replace. Also, lots of people are probably used to
Ctrl+W as it is widely used in terminals for word-wise deletions.
2025-04-02 20:54:17 +02:00
Leonard Hecker
303f32be39 Add support for color reverse and use it 2025-04-02 20:38:08 +02:00
Leonard Hecker
4832dcf833 Prevent unnecessary cursor updates 2025-04-02 19:34:30 +02:00
Leonard Hecker
e71f873f29 Implement VT attributes & Restyle the UI 2025-04-02 19:16:46 +02:00
Leonard Hecker
be9c1906a2 Prompt for saving when opening a new file 2025-04-02 19:16:27 +02:00
Leonard Hecker
ae0b42da36 Disable line higlight in editlines 2025-04-02 19:15:08 +02:00
Leonard Hecker
59bab1a9b4 Scrub debug-latency output on every frame 2025-04-02 19:12:44 +02:00
Leonard Hecker
bd3595fdee Modals consume all input 2025-04-02 18:25:55 +02:00
Leonard Hecker
2408f8b5f7 Ask for a filename on save if there's none 2025-04-02 17:36:28 +02:00
Leonard Hecker
cc302d1bab Split Framebuffer up & Implement output compression 2025-04-02 15:30:29 +02:00
Leonard Hecker
a598c6b378 Fix double clicks not being recognized as clicks 2025-04-02 02:13:25 +02:00
Leonard Hecker
df0d1abeb0 Fix ICU regex error reporting 2025-04-01 23:57:42 +02:00
Leonard Hecker
cebdc7b40b Fix CRLF support for ucd's measure_forward 2025-04-01 17:18:41 +02:00
Leonard Hecker
22d298e927 Here lays Leonard's hopes and dreams (aka word wrap fixes) 2025-03-31 21:50:38 +02:00
Leonard Hecker
f338eb34d2 Fix loading of ICU on Linux 2025-03-31 18:04:25 +02:00
Leonard Hecker
382f9605f1 Fix preferred cursor column not updating on drag 2025-03-31 18:03:42 +02:00