From 4a8395abb6876e7cae229da3efb8ffff3f4e13de Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Thu, 18 Jun 2026 18:35:30 +0200 Subject: [PATCH] feat(editor): show a completion popup as you type Anchor a suggestion list at the caret (monospace metrics, re-anchored on scroll), with arrow/Enter/Tab/Esc handling and click-to-accept. Accepting a key like `status` chains straight into its value suggestions. --- src/components/PlanEditor.vue | 156 +++++++++++++++++++++++++++++++++- 1 file changed, 155 insertions(+), 1 deletion(-) diff --git a/src/components/PlanEditor.vue b/src/components/PlanEditor.vue index 9b84f4d..18242a7 100644 --- a/src/components/PlanEditor.vue +++ b/src/components/PlanEditor.vue @@ -1,6 +1,7 @@ @@ -63,7 +164,24 @@ function syncScroll() { aria-label="Macroplan TOML source" @input="onInput" @scroll="syncScroll" + @keydown="onKeydown" + @blur="completion = null" > +