f313ea4a09
feat: use diffs instead of cursor nudges to refresh tree-sitter
2024-10-29 20:44:23 +01:00
d0de867d91
fix: set project correctly on restart
2024-10-28 19:58:47 +01:00
a9058ef949
fix: queue quit command to run after an async save_file
...
closes #60
2024-10-27 20:31:07 +01:00
3340ff5ef9
fix: add missing syntax.reset() call on full syntax refresh
2024-10-27 16:20:22 +01:00
66dfcd4a91
fix: relax tree-sitter full reparse time limit to avoid incremental parsing
2024-10-27 16:10:12 +01:00
16c5471126
refactor: move command and EventHandler out of the tui module
2024-10-25 22:39:04 +02:00
d804203760
fix: only render the first line of multiline diagnistics inline
...
fixes #51
2024-10-24 22:36:33 +02:00
40809835ae
fix: don't repeatedly send hover requests for the same editor cell
2024-10-22 19:07:26 +02:00
03cdcd260e
fix: propagate configured frame rate to widgets
2024-10-20 21:33:01 +02:00
9cc2613818
fix: double syntax_refresh_update_time
2024-10-15 22:52:23 +02:00
d10656b433
refactor: cache CaseData in Editor
2024-10-15 22:51:46 +02:00
88cf5670aa
fix: make switch_case flip each character individually
2024-10-15 22:27:59 +02:00
252ad3c269
feat: simplify the implementation of switch_case and add a flow mode keybind
2024-10-15 20:49:26 +02:00
xdBronch
9c448b14e5
add vim/helix ~
2024-10-15 20:49:19 +02:00
7b9a4fd586
fix: use more widely available box character for indent guides
...
The standard box chars are rendered properly in more terminals.
2024-10-15 10:49:47 +02:00
470967981b
feat: add command to toggle syntax highlighting (S-F10)
2024-10-12 20:26:40 +02:00
f4dd30b1c2
feat: make --no-syntax just disable syntax highlighting and not language server support
2024-10-12 19:57:47 +02:00
8004b41eb4
fix: don't force a full syntax reparse on undo/redo
2024-10-12 00:54:04 +02:00
efc5546488
feat: only use partial tree-sitter reparsing if parsing take more than 5ms
2024-10-12 00:52:04 +02:00
e9a7d681f2
fix: add missing pos_to_width calls in add_diagnostic
...
This will fix the positioning of diagnostics in lines that have glyphs
with widths != 1 like tabs or emojis.
2024-10-11 21:07:55 +02:00
39d4197a42
fix: workaround indent size limitation in indent_cursor
2024-10-10 23:44:13 +02:00
d2238bf847
feat: make indent size and tab width configurable and add indent guide mode
2024-10-10 23:16:49 +02:00
9080fd4826
fix: correctly propagate eol mode to status bar widgets
2024-09-25 20:52:35 +02:00
593b202b16
feat: add support for CRLF EOL mode
2024-09-25 20:06:06 +02:00
d75dcd7b84
feat: add metadata to all commands
2024-09-17 23:00:53 +02:00
bf3fe5f2ba
refactor: run zigimports
...
closes : #38
2024-09-10 22:25:54 +02:00
1391372174
feat: add mouse hover support to editor in jump mode
2024-09-10 21:24:54 +02:00
539b1fd37d
feat: add editor hover command
2024-09-10 20:23:34 +02:00
86fdfe98e2
fix: render syntax for overlapping tree-sitter captures
2024-09-03 14:41:26 +02:00
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