Commit graph

117 commits

Author SHA1 Message Date
02deaab3a7
fix: always call reload_file when re-openning an hidden non-ephemeral buffer
This is less confusing than just restoring the buffer as is. If the file has
changed on disk the usual expectation is to load the new contents on re-opening
the file.

closes #339
2025-10-28 16:34:44 +01:00
b463622f05
fix: allow Buffer.Manager.delete_buffer calls on dead buffers 2025-10-10 12:34:00 +02:00
5cfe2f6be4
feat: add some braile spinners to unicode.zig
Might be useful somewhere...
2025-10-07 20:56:55 +02:00
78cc4b2d24
fix(wsl): save without copying file mode if statFile fails 2025-10-07 10:25:55 +02:00
22e36481d6
fix: don't leak buffer names when deleting buffers
This commit also refactors the Buffer.Manager to make similar issues
easier to avoid in future.
2025-10-06 22:28:52 +02:00
Igor Támara
f201728457 hx: Fix closing other buffers and improve user messages 2025-10-06 21:16:33 +02:00
Igor Támara
d3e601e774 Show feedback to user when trying to quit with dirty buffers 2025-10-06 21:16:33 +02:00
Igor Támara
552417091d feat: add helix mode close other buffers and reload all
* x and x! have expected behaviour in Helix mode
2025-10-06 21:16:33 +02:00
65eb6bc7ad
feat: add Selection.from_pos function 2025-10-02 16:22:55 +02:00
2f89dcba8d
fix: improve Buffer writer impl 2025-09-29 22:29:45 +02:00
f90d486eae
fix: update Buffer.store_to_string for zig-0.15 2025-09-26 21:05:16 +02:00
8f1375745d
fix: simplify and update Buffer.get_byte_pos for zig-0.15 2025-09-26 21:04:42 +02:00
2867fc9a8e
fix: update Buffer.get_line function for zig-0.15 2025-09-26 21:03:57 +02:00
0f560ed3bc
fix: Buffer.rebalance on zig-0.15 2025-09-26 15:36:25 +02:00
dfdb82ca20
refactor: move write_range to Buffer 2025-09-26 15:04:17 +02:00
705ff49ae8
fix: remove bogus assert in Buffer drain function 2025-09-26 13:17:04 +02:00
bf0d4402ea
refactor: lots more writergate fixes - first successful build 2025-09-25 22:01:29 +02:00
e6b39c274c
refactor: lots and lots of writergate changes 2025-09-24 22:30:18 +02:00
96e8100373
Merge branch 'master' into zig-0.15 2025-09-24 18:33:33 +02:00
935b178d89
feat: add Buffer.Node.byte_offset_to_line_and_col and testcase 2025-09-17 22:17:00 +02:00
f958aa3039
Merge branch 'master' into zig-0.15 2025-09-13 16:16:51 +02:00
3d90b199ad
fix: do not return zero width codepoints from egc_at
Skip them and return the next non-zero width codepoint. This makes more sense and
prevents endless loops in code that scans by egc width using egc_at, like
Cursor.move_right_until for example.
2025-09-13 15:45:17 +02:00
8903ca86b1
Merge branch 'master' into zig-0.15 2025-09-12 01:05:35 +02:00
fda9338a06
fix: clamp to end of last line if the cursor is past the end of the buffer
closes #289
2025-09-09 09:24:18 +02:00
15990b9dce
Merge branch 'master' into zig-0.15 2025-08-27 00:04:58 +02:00
76ef0aff3a
fix: minor off-by-one bug in View.is_visible 2025-08-25 21:32:58 +02:00
55a862eac0
Merge branch 'master' into zig-0.15.0 2025-08-22 13:12:37 +02:00
38236bd93a
refactor: Buffer.Manager.get_buffer_for_file can be const 2025-08-13 14:40:59 +02:00
54a43264bb
Merge branch 'master' into zig-0.15.0 2025-08-08 21:58:15 +02:00
68a5de5aa7
refactor: move lsp_version field to Buffer 2025-08-08 21:02:16 +02:00
dd2601b627
feat: store/restore buffer dirty state 2025-08-08 13:16:17 +02:00
f2a3075d58
fix: correct restore of buffer meta data 2025-08-08 13:11:36 +02:00
991c47f3b3
feat: restore buffer manager state on restart 2025-08-07 18:02:55 +02:00
1babf86ce4
fix: crash in Buffer.set_file_path 2025-08-06 19:46:38 +02:00
6e6d6daed9
Merge branch 'master' into zig-0.15.0 2025-08-05 20:10:49 +02:00
c88e2dd975
fix: don't leak Buffer.file_path 2025-08-05 15:24:18 +02:00
3cace58049
feat: add Buffer.reset_from_string_and_update function 2025-08-05 15:07:08 +02:00
652db7d9b9
refactor: add Buffer.mark_dirty() function 2025-08-05 13:41:48 +02:00
5b099b0b10
Merge branch 'master' into zig-0.15.0 2025-07-21 10:22:42 +02:00
efdad96054
refactor: improve create pattern to avoid leaks 2025-07-19 00:03:30 +02:00
724dc9200d
Merge branch 'master' into zig-0.15.0 2025-07-15 18:41:19 +02:00
b0096bed74
feat: create parent directories if needed when saving new files
closes #84
2025-07-15 18:07:15 +02:00
6fb364d64b
zig: update to zig-0.15.0-dev.703+597dd328e 2025-06-04 22:37:21 +02:00
717bef9c61
build: update to latest libvaxis and zg api 2025-06-04 22:22:52 +02:00
831607ffd6
fix: nudge_delete should handle cursor moving to same line as delete
closes #265
2025-06-03 23:53:12 +02:00
1258d76986
refactor: convert local ArrayList to ArrayListUnmanaged in editor 2025-05-27 21:43:57 +02:00
9023109b21
refactor: convert Buffer.MetaWriter to an ArrayListUnmanaged 2025-05-27 20:47:13 +02:00
Robert Burnett
fcbb377237 removed mark related code 2025-05-13 18:16:33 +02:00
Robert Burnett
d88b15ce04 began support vim mark system 2025-05-13 18:16:33 +02:00
4aca7063f2
feat: add reload_file command 2025-04-09 19:14:02 +02:00