From 22f65a5bcea974ffb334e50c6efe89921fa06dc2 Mon Sep 17 00:00:00 2001 From: Happy Turtle Date: Sat, 8 Nov 2025 23:22:53 +0200 Subject: [PATCH 1/2] Fixed an isssue where useractions with query placeholders were not working correctly. --- Source/Seal.spoon/seal_useractions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Seal.spoon/seal_useractions.lua b/Source/Seal.spoon/seal_useractions.lua index 0e3559f7..bf38e0e0 100644 --- a/Source/Seal.spoon/seal_useractions.lua +++ b/Source/Seal.spoon/seal_useractions.lua @@ -255,7 +255,7 @@ function obj.completionCallback(row) local fn = obj.all_actions[row.text].fn fn() elseif row.type == 'openURL' then - local url = obj.all_actions[row.text].url + local url = string.gsub(obj.all_actions[row.text].url, '${query}', defaultQuery) obj.openURL(url) elseif row.type == 'addURL' then obj.stored_actions[row.name] = { url = row.url } From 563fe18d3d6fe0c7fb82e9c0ed4ca239e5edcb79 Mon Sep 17 00:00:00 2001 From: Happy Turtle Date: Sat, 8 Nov 2025 23:24:49 +0200 Subject: [PATCH 2/2] fix var substitution in 'openURL' user actions --- Source/Seal.spoon/seal_useractions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Seal.spoon/seal_useractions.lua b/Source/Seal.spoon/seal_useractions.lua index bf38e0e0..33b4355f 100644 --- a/Source/Seal.spoon/seal_useractions.lua +++ b/Source/Seal.spoon/seal_useractions.lua @@ -255,7 +255,7 @@ function obj.completionCallback(row) local fn = obj.all_actions[row.text].fn fn() elseif row.type == 'openURL' then - local url = string.gsub(obj.all_actions[row.text].url, '${query}', defaultQuery) + local url = string.gsub(obj.all_actions[row.text].url, '${query}', "") obj.openURL(url) elseif row.type == 'addURL' then obj.stored_actions[row.name] = { url = row.url }