From 91b3786f47f05671d3af7797c828d144433d27c1 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 30 May 2025 01:31:16 -0400 Subject: [PATCH] Make $scope variable available to commands --- Fmt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Fmt.py b/Fmt.py index 850feb6..0ff4c28 100644 --- a/Fmt.py +++ b/Fmt.py @@ -317,6 +317,7 @@ def extract_variables(view): vars = view.window().extract_variables() vars['tab_size'] = str(tab_size) vars['indent'] = indent + vars['scope'] = view_scope(view) vars.update(os.environ) return vars