Merge pull request #17 from sriramsv/tasker-search

Tasker Command Search
This commit is contained in:
zobnin
2022-12-28 11:25:34 +03:00
committed by GitHub

View File

@@ -0,0 +1,25 @@
-- name = "Tasker Command Search"
-- description = "Sends tasker command from search bar"
-- data_source = "tasker"
-- type = "search"
-- author = "Sriram SV"
-- version = "1.0"
-- prefix = "tasker | Tasker | command"
local md_color = require "md_colors"
local orange = md_colors.orange_500
text_from = ""
text_to = ""
function on_search(input)
text_from = input
text_to = ""
search:show({input},{orange})
end
function on_click(idx)
text_from = string.lower(text_from)
text_from=text_from:replace(" ", "=:=")
tasker:send_command(text_from)
end