Commit graph

127 commits

Author SHA1 Message Date
7b812d73ea
refactor: change a -> allocator 2024-09-02 14:31:49 +02:00
34540bbff0
feat: add editor.save_file_as command 2024-08-30 20:25:26 +02:00
c01576412a
refactor: prefer orelse to if(pred) |x| x else y 2024-08-29 13:13:45 +02:00
xdBronch
1caf2aa0f6 dont error on empty saves 2024-08-29 01:07:59 +02:00
e6c6dd994d
fix: save anyway if format on save fails 2024-08-27 22:52:22 +02:00
d11ea9dde4
feat: add enable_format_on_save configuration option 2024-08-27 21:39:23 +02:00
70ec2a11c5
fix: only fallback to get_next_file in get_next_diagnostic if it is available 2024-08-27 19:18:30 +02:00
Tim Culverhouse
d4b7a6ab9b vim: change cursor shape when only one cursor
In vim mode, change the cursor shape depending on the mode. This is only
applicable if `enable_terminal_cursor` is set to true and there is only
one cursor in the editor.
2024-08-26 20:49:54 +02:00
xdBronch
9e59e808ba
add more goto commands 2024-08-25 15:03:23 +02:00
f213aa5abe fix: don't send lsp change events when opening or closing a file 2024-08-19 20:35:37 +02:00
2d9e66b534 fix: disambiguate find and find_query commands 2024-08-18 22:03:17 +02:00
ea31e414ee refactor: clean-up command naming 2024-08-18 17:59:28 +02:00
4127cf8bcf feat: show diagnostics in the file list view if they refer to another file 2024-08-18 16:21:38 +02:00
28640633be refactor: move add_diagnostics command from editor to mainview 2024-08-18 13:59:53 +02:00
1f6bc86265 feat: add cli option to disable syntax highlighting 2024-08-16 22:00:25 +02:00
78489e31f6 feat: add find all references LSP command 2024-08-16 00:02:42 +02:00
d364ac0f48 fix: paste with no argument should paste from the internal clipboard 2024-08-08 22:48:26 +02:00
4840d2ef60 fix(windows): fallback to internal paste in system_paste on windows 2024-08-08 22:44:54 +02:00
476baf768e fix: correct a couple of integer overflow errors 2024-08-07 20:32:25 +02:00
b09aa98f70 feat: support loading extreamly large files
- Allocate initial file and leaf data outside of Buffer.arena
- Disable gutter diffs for very large files
- Disable syntax highlighting for very large files
2024-08-05 22:05:38 +02:00
42ee6459e6 feat: improve performance of incremental re-parsing
We use Buffer.Node.get_byte_pos instead of Buffer.Node.get_range to calculate
tree-sitter edits for incremental parsing. This reduces the number of
egc_length calls required per syntax.edit call to the minimum.
2024-07-29 21:46:34 +02:00
f535fc02bf feat: more work on new find in files results table 2024-07-27 23:57:56 +02:00
fb1d91585f feat: add Buffer get_from_pos function 2024-07-23 22:21:12 +02:00
67407aeb41 fix: set undercurl color after the rest of the diagnostic style 2024-07-09 23:43:55 +02:00
0caeb2c523 feat: set undercurl color for diagnostics 2024-07-09 21:16:16 +02:00
f06a7b3d6a refactor(Buffer): rename Metrix to Metrics
Metrix was a bit too silly
2024-07-05 20:58:24 +02:00
12842b6b3b refactor(find): switch back to synchronous find to eliminate flicker 2024-07-05 19:56:01 +02:00
66df590541 refactor(find): use dynamic input buffer in find mode and improve some edge cases 2024-07-05 19:56:01 +02:00
128182a448 refactor(Buffer): remove Plane dependency in Buffer 2024-07-05 00:33:31 +02:00
581dbfb749 fix(Buffer): prevent integer bit truncation crash in files with extremely long lines 2024-07-02 12:43:52 +02:00
5164164fd7 feat(editor): add '&' to non-word character list 2024-07-02 12:29:43 +02:00
9e323fe85e fix(editor): correct signature of drag_to command 2024-07-02 09:55:33 +02:00
23f2e1a1c0 fix: pop_cursor should reset match.has_selection 2024-06-30 23:17:38 +02:00
032982c1e8 refactor: rework error handling to simplifiy command implementation and provide better back traces 2024-06-26 23:29:39 +02:00
830000579b feat(lsp): add initial support for LSP completion requests 2024-06-25 21:12:29 +02:00
btipling
7230e7de86 split is a deprecated compile error and unused
using std.mem.split is a compileError as off this change

76fb2b685b
2024-06-22 00:45:26 -07:00
e7c8fea3f0 feat: add scrollbar to command palette 2024-06-21 01:20:17 +02:00
86b91dc0de fix(editor): stop render clock running endlessly on restore 2024-06-18 20:04:19 +02:00
34bbfd49ad fix(editor): store current cursor position correctly on initial undo 2024-06-13 20:21:09 +02:00
4812dd9793 fix(editor): don't leak PosToWidthCache on editor render 2024-06-13 17:36:42 +02:00
60218a06b7 feat: use language specific formatters defined in flow-syntax/file_types 2024-06-06 21:12:26 +02:00
49ad54d60c feat: implement remaining terminal handling functions via libvaxis 2024-05-22 10:40:08 +02:00
453fb12055 fix: add missing need_render() calls for commands that are not directly input triggered 2024-05-20 19:18:03 +02:00
94e045ffe7 feat: add to_upper and to_lower commands on Alt-u and Alt-l 2024-05-12 00:10:11 +02:00
1cd3cb17ce feat: add libvaxis renderer 2024-05-10 12:44:14 +02:00
b15fa47f30 refactor: add renderer abstraction layer 2024-05-09 11:48:33 +02:00
9ff63fbed5 fix: avoid desync of tree-sitter syntax 2024-05-09 00:35:31 +02:00
e69bd6166a feat: render language server diagnostics and add next/previous diagnostic commands
Bound to Alt-n and Alt-p
2024-04-20 00:04:46 +02:00
e41c2d34f7 feat: render diagnostics (part 1) 2024-04-17 23:26:19 +02:00
dfdbb47367 feat: add close_file_without_saving command and keybinding (C-S-w) 2024-04-17 18:08:11 +02:00