Commit graph

2350 commits

Author SHA1 Message Date
20b5711fbb
refactor: broadcast trigger character updates to all editors 2026-01-14 17:39:59 +01:00
312ea000b8
refactor: handle editor events per editor in mainview 2026-01-14 17:39:30 +01:00
e421944251
refactor: replace many instances of get_active_editor with get_editor_for_file/buffer
This fixes many issues with splits.
2026-01-14 17:38:28 +01:00
de28f2d931
refactor: move fast/alt/jump mode control to tui for better cross split support 2026-01-14 14:42:54 +01:00
7f85099ba1
refactor: remove mainview.active_editor member
active_editor was getting out of sync with the currently active split
and it is likely an over optimization anyway.
2026-01-14 14:24:08 +01:00
79ec85de22
fix: allow idle_actions to run in all open splits 2026-01-14 14:18:59 +01:00
77946e51f6
refactor: document available idle actions in config file 2026-01-14 13:58:53 +01:00
12c4d507b4
fix: don't re-run highlight_references if it is current 2026-01-14 13:44:12 +01:00
bf8b2d6bcd
fix: incorrect match_type when highlight_references finds only one reference 2026-01-14 13:43:34 +01:00
cb189e3936
refactor: enable scrollbar_auto_hide by default 2026-01-14 13:07:10 +01:00
dfcca170ef
fix: highlight_references idle_action should cancel and not flicker 2026-01-14 12:58:24 +01:00
5362966a59
fix: do not auto_find if the selection is already a match 2026-01-14 12:57:06 +01:00
dc077350cd
refactor: remove cancel idle action again 2026-01-14 12:55:40 +01:00
2ca613c5a6
feat: add cancel action to idle_actions 2026-01-14 12:04:20 +01:00
8d153d6647
fix: send editor byte positions to all LSP requests
Also refactor a bit to reduce code duplication for LSP commands.
2026-01-14 11:33:01 +01:00
1f45b884b8
fix: enable_alt_scroll command description 2026-01-14 11:14:13 +01:00
1dc0fcf9b5
feat: scroll editor horizontally when in alt scroll mode 2026-01-14 11:11:19 +01:00
6828b24367
feat: add enable/disable_alt_scroll commands 2026-01-14 11:10:46 +01:00
385478741f
refactor: reset alt_scroll mode on mode change 2026-01-14 11:10:02 +01:00
a53ef127ec
feat: add fast_scroll mode support to horizontal scrolling
Also, bump the basic scroll step to 5 columns like other editors.
2026-01-14 11:09:42 +01:00
961b88ffd5
refactor: do not report missing commands for alt_scroll mode bindings 2026-01-14 11:06:48 +01:00
7c0d841bb6
refactor: add enable/disalb_alt_scroll keybinds to flow mode 2026-01-14 11:05:52 +01:00
15b582243c
fix: ignore modifiers on all modifier keys
This allows combining of modifier key event keybindings without having
to bind all modifier combinations. ie. with this we can use fast_scroll
and jump_mode at the same time by holding both modifiers down.
2026-01-14 11:03:46 +01:00
91288fa6a1
fix: gutters should only accept diff updates for their attached editor 2026-01-13 20:36:11 +01:00
8acef320fa
refactor: update default frame limit to 120 fps
All my devices and machines have at least 120hz displays and it just
so much smoother.
2026-01-13 19:45:43 +01:00
6d2ad9ab5c
fix: update diff gutter on editor open events 2026-01-13 19:43:57 +01:00
1099b511a9
feat: add goto_next/prev_change commands 2026-01-13 19:41:09 +01:00
53f5096ef5
refactor: move change diffs to editor 2026-01-13 18:40:25 +01:00
6ef5ea1336
feat: add keybindings for goto_next_change & goto_prev_change 2026-01-13 18:32:38 +01:00
276b351d61
refactor: use plain bar for modifications in diff gutter 2026-01-13 18:30:01 +01:00
1fbd09387e
feat: implement proper line diffing for diff gutter 2026-01-13 18:20:51 +01:00
ce9246374c
Revert "refactor: render gutter diffs only as insert or delete"
This reverts commit a6b78397bf.
2026-01-13 16:33:16 +01:00
3531ecf367
refactor: call diffz diffCleanupSemantic to produce better diffs 2026-01-13 16:30:37 +01:00
a6b78397bf
refactor: render gutter diffs only as insert or delete 2026-01-13 16:21:38 +01:00
2d5288aa6f
refactor: remove unused error return in Plane.put_yx and Plane.cursor_move_yx 2026-01-13 16:19:47 +01:00
52dfc1e706
fix: broken cursor movement in cursor_move_yx causes info view to miss render 2026-01-13 16:17:15 +01:00
cf28e27a81
refactor: add diffz support and use it for gutter diffs 2026-01-13 16:14:57 +01:00
1e02d978de
fix: render inserted and changed lines the same in the diff gutter
The diffing algo is unstable which causes the diff gutter to change
a lot while typing. This is a little annoying and not that useful so
we'll just render them the same until we get a stable diff algo.
2026-01-13 12:44:41 +01:00
25d5f80a4c
refactor: drop all c_(u)int usage in Plane
The use of c_int and c_uint comes from the days when flow supported
building agains notcurses has a c API.
2026-01-13 12:44:40 +01:00
35be98f95c
fix: Make absolute Plane writing functions update column correctly
Writing to an absolute plane position should update the plane's cursor
position before incrementing it even if it is not actually used.

closes #446
2026-01-13 12:44:40 +01:00
b52091fe34
fix: prevent crash from bad input state when overlay mode is not found
closes #450
2026-01-12 22:12:24 +01:00
4273ab790c
feat: cancel inline completion with backspace
closes #447
2026-01-12 19:33:37 +01:00
da942fe640
refactor: make delete_word_left less greedy at beginning of line 2026-01-12 19:16:13 +01:00
7dab15da20
refactor: merge loops in completion_palette.load_entries 2026-01-12 19:16:01 +01:00
93bfc70171
refactor: merge loops in completion_dropdown.load_entries 2026-01-12 18:19:04 +01:00
eb1b0b7b7a
fix: remove nonsense skipValue call in symbol tags handling
closes #454
2026-01-12 17:04:26 +01:00
cf3648ce80
refactor: improve send_symbol error reporting 2026-01-12 17:02:36 +01:00
bfd98c3b90
fix: use byte postion instead of column offset in highlight references requests
closes #451
2026-01-12 16:35:31 +01:00
e61d0f42b8
refactor: drop line_number_mode broadcast messages 2026-01-12 16:29:25 +01:00
6a6fb11c8e
refactor: send highlight references to correct editor for file path 2026-01-12 16:23:44 +01:00