We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using Seal UserActions plugin with custom URL, the search term is never properly substituted. Instead, the query is always ${query}.
${query}
Here is my config, but I also tested by copying the Leo translate example from the docs and saw the same behavior.
["Google Search"] = { url = "https://www.google.com/search?q=${query}", icon = "favicon", keyword = "g", },
Strangely, when I experiment with including symbols in the query sometimes it works.
For example:
g hello
https://www.google.com/search?q=$%7Bquery%7D
g hello%
https://www.google.com/search?q=hello%25
The text was updated successfully, but these errors were encountered:
I was able to get it working by making this change on line 279 of seal_useractions.lua:
local query_escaped = row.arg:gsub("%%", "%%%%") local url = string.gsub(obj.actions[row.actionname].url, "${query}", query_escaped)
Very weird... I'm pretty stumped why this would fix it but it does. Maybe it's an issue with Lua?
Would you like me to open a PR?
Sorry, something went wrong.
I was having the same issue, the fix @ameddin73's fix worked for me.
There's a PR already: #272 No reaction yet, maybe we could boost this a little.
No branches or pull requests
When using Seal UserActions plugin with custom URL, the search term is never properly substituted. Instead, the query is always
${query}
.Here is my config, but I also tested by copying the Leo translate example from the docs and saw the same behavior.
Strangely, when I experiment with including symbols in the query sometimes it works.
For example:
g hello
fails and openshttps://www.google.com/search?q=$%7Bquery%7D
g hello%
successfully openshttps://www.google.com/search?q=hello%25
.The text was updated successfully, but these errors were encountered: