Commit graph

246 commits

Author SHA1 Message Date
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
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
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
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
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
fc15c8bda6 feat: first (mostly) working version of goto_definition command
Tested only with zls and clangd so far.
2024-04-05 22:55:23 +02:00
98104658b4 feat: lots more work on LSP support (WIP)
First valid response from clangd.
2024-04-04 21:54:14 +02:00
1406052c06 feat: lots more work on LSP support (still WIP) 2024-04-02 23:07:27 +02:00
f460490510 fix: prevent minilog getting stuck rendering long messages 2024-04-01 22:16:30 +02:00
e2c565dfee fix: crash on shutdown from dangling logger references 2024-04-01 22:02:08 +02:00
823d066a58 fix: track modifier state and generate events if it is out of sync
This prevents fast scroll and other modifier functions getting stuck if events
are lost due to focus change.
2024-04-01 21:37:35 +02:00
f12694778b fix: process modifier key events independtly of modifier bits
This fixes ctrl-click on latest kitty.
2024-04-01 21:09:41 +02:00
d00e76f3ab build: update zig 2024-04-01 13:45:49 +02:00
061494e81a fix: detailed filestate display on home screen 2024-04-01 12:11:36 +02:00
2e8fd58ba5 feat: WIP start work on goto_definition LSP command 2024-03-31 22:41:20 +02:00
eb94bf5258 refactor: disable spammy input mode messages 2024-03-31 22:22:20 +02:00
151caf8dea fix: assume log subscription in logview
The log subscription is now managed by minilog, which is always running. This
unbreaks the minilog after showing/hiding the logview.
2024-03-31 22:01:43 +02:00
a404f6e768 fix: destroy editor before creating a new one
Editor lifetimes should not overlap otherwise we run into duplicate command
issues.
2024-03-31 21:03:23 +02:00
3d5119c335 fix: stop leaking command IDs
Command IDs are supposed to be unique for each command name and we should
not generate new IDs each time an editor is loaded.
2024-03-31 21:01:31 +02:00
4585c5af62 feat: add command to add cursors to all line ends 2024-03-31 21:00:19 +02:00
8f8d4b6145 feat: add command to add cursors to all matches
Also, move inspector view to Ctrl-Shift-i
2024-03-31 19:13:43 +02:00
744c6012a7 feat: add search box to open recent file mode 2024-03-28 22:29:40 +01:00
8559d6f5f3 feat: add InputBox widget 2024-03-28 22:09:31 +01:00
d4066ad396 feat: add support for menu header widgets 2024-03-28 22:02:45 +01:00
c4315d1dc5 feat: limit number of recent files returned by project manager 2024-03-27 22:25:04 +01:00
20e9327ac7 refactor: cleanly shutdown project manager and tree walker on early exit 2024-03-27 22:13:03 +01:00
c36cd87119 fix: don't stay in open_recent mode if navigate fails 2024-03-27 21:13:56 +01:00
da432a22ec feat: open current file in recent list on ctrl release 2024-03-27 21:13:14 +01:00
acabb20785 fix: abort navigate if there are unsaved changes 2024-03-27 21:11:47 +01:00
2c4452dd81 feat: add keyboard support to menus 2024-03-26 22:01:31 +01:00
4b86579745 refactor: replace unsafe unreachable usage with @panic 2024-03-24 20:12:59 +01:00
2d1fb680e8 feat: continue work on open_recent UI (WIP) 2024-03-22 21:03:00 +01:00
f4de650557 feat: add open recent command to home screen 2024-03-22 21:00:19 +01:00