From e21e2279fd8007127629f2e6c313c48d92d0ad37 Mon Sep 17 00:00:00 2001 From: kunalja Date: Sun, 8 Jun 2025 05:00:02 -0400 Subject: [PATCH] dim --- src/main.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.ts b/src/main.ts index b499155..0453015 100644 --- a/src/main.ts +++ b/src/main.ts @@ -354,6 +354,15 @@ export default class VariantEditor extends Plugin { new Notice('Editing existing variant'); } + // Set active line for dimming + this.activeLine = from.line + 1; + + // Store the selected text for highlighting + this.selectedText = selectedText; + + // Force editor refresh to apply decorations + this.app.workspace.updateOptions(); + // Open the variant editor modal new TextInputModal( this.app,