518af3ab45
refactor: major re-work of completion to edit via buffer instead of query
...
This means completion no longer changes the buffer in anyway until a
completion menu entry is actually selected. This simplifies (or eliminates)
many edge cases and greatly improves multi-cursor support.
2026-01-30 11:20:48 +01:00
94aa462a8d
refactor: allow updating of completions
2026-01-29 20:59:49 +01:00
38e681f7bf
fix: apply completion de-duplication fix to completion_palette too
2026-01-29 16:01:20 +01:00
42eb56493c
fix: better support multicursor completion
...
closes #467
2026-01-27 22:21:49 +01:00
68b3fe1624
fix: deduplicate completion results
...
Some LSPs may return duplicate results for some queries, so we no
force de-duplication when loading the completion palettes.
closes #469
2026-01-26 12:36:11 +01:00
d0abaaee2a
refactor: move completion replacement logic to editor
2026-01-21 17:35:09 +01:00
7dab15da20
refactor: merge loops in completion_palette.load_entries
2026-01-12 19:16:01 +01:00
3886427582
fix: unicode symbol rendering in symbol palette
2025-12-27 21:45:45 +01:00
f875dba810
refactor: limit maximum size of detail and description in completion dropdown
2025-12-24 00:40:58 +01:00
308f46c8a2
refactor: move LSP types to new module
2025-12-12 13:41:16 +01:00
4cb0f7df02
feat: activated selected entry on tab in the completion palette
...
closes #423
2025-12-10 12:39:23 +01:00
8152de3df9
refactor: prefer completion insertText over newText or label
2025-12-09 19:17:30 +01:00
c71ddb2900
refactor: add newText and insertText to info panel in debug builds
2025-12-09 18:55:47 +01:00
62bc86d2db
refactor: add insertText to completion_palette get_values function
2025-12-09 18:54:04 +01:00
288e23e8b0
fix: completion with no replacements causes OOM
2025-12-09 18:32:41 +01:00
e7118763a1
refactor: remove snippet from info panel
2025-12-08 21:31:24 +01:00
075ec84cf0
refactor: call snippet parser when inserting completion items
2025-12-08 21:18:04 +01:00
cbf26b3b6a
refactor: use a structure for returning completion palette item values
2025-12-08 21:17:02 +01:00
9b33f4cbe3
refactor: remove commented function signature
2025-12-08 18:06:33 +01:00
15e96d9136
refactor: add detail to info in completion palette
2025-12-08 18:04:37 +01:00
86d7dd9cc9
refactor: place completion palette top right and undimmed
2025-12-08 17:44:19 +01:00
d86193a9aa
feat: display label_detail and label_description in completion palette
2025-12-08 17:44:06 +01:00
852f456bf0
feat: display symbol documentation in info panel in completion_palette
2025-12-08 16:47:19 +01:00
a10254b77a
feat: add item detail to completion palette
2025-12-07 23:50:02 +01:00
34af852634
refactor: remove obsolete Editor.selection_pos_to_width function
2025-11-25 13:30:28 +01:00
25a719382f
fix: store button click locations as signed values
2025-10-10 16:05:50 +02:00
ce87dcfa2b
refactor: pass relative click position to button click handlers
...
This a big refactor just to clean-up type definitions used by Button and Menu.
The goals is to pass the click position as a cursor object.
2025-10-09 19:11:25 +02:00
3c55ed876b
refactor: allow mocking of root module functions for easier unittesting
2025-10-08 14:18:03 +02:00
9ea32d46e2
feat: preparations for additionalTextEdits support in completions
2025-10-02 22:51:01 +02:00
6ec8aae94a
fix: translate byte offsets to columns when applying completions
2025-10-02 16:27:47 +02:00
6ae176a8ac
refactor: add selection_pos_to_width and get_replace_selection functions
2025-10-02 16:27:16 +02:00
778907c513
fix: ignore empty replacement selections for completion
2025-10-02 15:00:00 +02:00
b1e5b2f80f
fix: never set completion selection to an empty range
2025-10-01 22:02:21 +02:00
b02f096fef
feat: set the initial completion query based on the cursor position
2025-10-01 21:55:12 +02:00
03c82999b8
feat: select replacement range during completion
2025-10-01 21:28:32 +02:00
bf0d4402ea
refactor: lots more writergate fixes - first successful build
2025-09-25 22:01:29 +02:00
9bdc3e0a0a
fix: handle completion items with no type icon
...
superhtml fix
2025-09-13 20:06:44 +02:00
057a9d60cd
feat: add completion palette
2025-08-15 23:30:54 +02:00