Commit graph

171 commits

Author SHA1 Message Date
b197b1235b fix: add timeout to synchronous language server calls
Otherwise if language server does not respond then we effectively hang.
2024-04-19 22:06:15 +02:00
5e8301e52e build: update dependencies 2024-04-19 22:05:57 +02:00
e41c2d34f7 feat: render diagnostics (part 1) 2024-04-17 23:26:19 +02:00
33dd4486eb fix: don't hang project_manager if language server exits early 2024-04-17 21:13:20 +02:00
939a70b249 feat: add file_stack and return to previous file on file close 2024-04-17 19:02:32 +02:00
e3b8d513ea fix: log project_manager errors 2024-04-17 18:34:44 +02:00
dfdbb47367 feat: add close_file_without_saving command and keybinding (C-S-w) 2024-04-17 18:08:11 +02:00
438d64268e feat: add pasting support to open recent and find modes 2024-04-17 18:03:09 +02:00
b6127b06d4 feat: render control codes in whitespace styling if show_whitespace is on 2024-04-17 17:52:03 +02:00
cc607089df feat: process textDocument/publishDiagnostics notifications from language server 2024-04-16 23:22:47 +02:00
ef61903334 build: update to zig 0.12.0-dev.3659+1e5075f81 2024-04-16 23:22:13 +02:00
07571ef363 refactor: load persisted projects before file system scan
This should improve usability for very large projects.
2024-04-15 23:07:03 +02:00
3eba052c15 fix: shutdown race if project_manager does not exit faster than tui 2024-04-15 21:29:27 +02:00
9eb6dd3be4 fix: send sigterm to languages servers on exit
Not all language servers willingly exit if we just close stdin. Eventually
we will follow the protocol's shutdown process, but for now we just send a
sigterm.
2024-04-15 21:15:26 +02:00
55e99fe958 refactor: replace ArrayList with plain alloc for Button.label 2024-04-15 19:53:11 +02:00
49d6ee94fc refactor: simplify and clean-up navgate command
This should also prevent get_mru_position and location_jump from stomping
on each other.
2024-04-15 19:50:11 +02:00
0f5f41751e feat: add fuzzy matching to recent files list with fuzzig
Many thanks to @fjebaker
2024-04-15 18:59:23 +02:00
5375e1449e feat: send didChange, didSave and didClose events to language server 2024-04-13 02:50:02 +02:00
1288021682 feat: save and restore file MRU state per project 2024-04-11 18:36:54 +02:00
1d9155864d fix: prevent mini/overlay modes from stomping each other
Also, allow cancelling modes by clicking the flow button.
2024-04-11 18:35:33 +02:00
137947355d feat: move session restore file to cache directory 2024-04-11 18:33:49 +02:00
2416251fc3 feat: generate hover events during drag operations 2024-04-11 18:32:57 +02:00
3a2d91de7b docs: add gutter_mode_next command to docs 2024-04-10 22:14:48 +02:00
9aea1f54f5 feat: allow runtime changing of the gutter mode 2024-04-10 22:12:19 +02:00
f61701150d refactor: make filestate a button 2024-04-10 20:34:08 +02:00
30d1ac9e8c feat: make linenumstate a button that enters goto mode when clicked 2024-04-10 19:28:58 +02:00
28ab5643d9 fix: use theme background style for home screen 2024-04-10 18:40:33 +02:00
0053b80d81 refactor: improve button widget api 2024-04-10 18:39:47 +02:00
53554be4b0 refactor: drop dead send warnings in tui log 2024-04-10 18:37:42 +02:00
9caf1d8947 fix: build on macos 2024-04-10 18:36:51 +02:00
9c064eb20c feat: add jump_mode key bindings to vim modes 2024-04-09 23:09:57 +02:00
31bef39934 feat: add goto_definition key binding to vim modes 2024-04-09 23:05:34 +02:00
46eb88aaa4 feat: add open recent mode key binding to vim modes 2024-04-09 23:03:45 +02:00
053bf19110 feat: add move_left_vim and move_right_vim commands
closes #3
2024-04-09 23:01:16 +02:00
b8261f924e fix: stop selection from running off the bottom of the recent files list 2024-04-09 22:41:26 +02:00
48fc8a968c fix: store jump location source before navigating to another file 2024-04-09 22:32:46 +02:00
390a56714a fix: incorrect offset on goto mode cancel 2024-04-09 22:27:33 +02:00
b3f2a8465d feat: exit open recent mode on Ctrl-C or Ctrl-G 2024-04-09 22:26:53 +02:00
cbf87ec7c0 feat: shorten long paths in recent file list 2024-04-09 22:22:06 +02:00
cbe656fe44 fix: use 1 based offsets in get_mru_position 2024-04-09 21:51:17 +02:00
3e97f6627c feat: don't center screen when navigation destination is on-screen 2024-04-09 21:45:54 +02:00
31561242db feat: update mru list when navigating and store last file position 2024-04-09 21:44:40 +02:00
792140869d docs: add note about quick select 2024-04-09 21:39:23 +02:00
4b2c033c5d feat: add mouse bindings for jump_back/forward and goto_definition 2024-04-09 18:25:41 +02:00
695b0dbff5 feat: add cross file location history support
Also, this improves the location history storage to be simpler and provide much
more intuitive navigation.
2024-04-09 18:15:53 +02:00
2fafceab83 fix: crash while rendering chunks longer than 4096 bytes (long lines)
Proof that I was a Zig noob not too long ago. The defer of course runs
immediately.
2024-04-09 18:12:22 +02:00
e236f3f3c6 feat: highlight targetSelectionRange if privided in textDocument/definition response 2024-04-09 18:10:12 +02:00
1c01773a09 fix: shutdown project_manager before restart 2024-04-08 22:28:08 +02:00
184755a06f refactor: reduce idle frame count to 1 2024-04-08 22:27:42 +02:00
29f31f122c fix: don't reload when navigating locally in the current file 2024-04-08 22:26:25 +02:00