You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix this, change the function choicesURLPart to replace spaces with +, which should work for most search systems. At the very least, it won't break the program like the current behavior
function obj.choicesURLPart(query)
--print("choicesURLPart for: "..query)
++
++ query = query:gsub(" ", "+")
++
local choices = {}
for name,data in pairs(obj.providers) do
local data_url = data["url"]:gsub("([^%%])%%([^s])", "%1%%%%%2")
local full_url = string.format(data_url, query)
local url_scheme = string.sub(full_url, 1, string.find(full_url, "://") - 1)
local choice = {}
choice["text"] = data["name"]
choice["subText"] = full_url
choice["plugin"] = obj.__name
choice["type"] = "launch"
choice["url"] = full_url
choice["scheme"] = url_scheme
table.insert(choices, choice)
end
return choices
end
The text was updated successfully, but these errors were encountered:
To fix this, change the function choicesURLPart to replace spaces with +, which should work for most search systems. At the very least, it won't break the program like the current behavior
The text was updated successfully, but these errors were encountered: