Merge pull request #9 from sriramsv/play-store-search
Play store search script
This commit is contained in:
25
community/play-store-search.lua
Normal file
25
community/play-store-search.lua
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
-- name = "Play Store"
|
||||||
|
-- description = "Search anything in playstore app"
|
||||||
|
-- data_source = "internal"
|
||||||
|
-- type = "search"
|
||||||
|
-- author = "Sriram SV"
|
||||||
|
-- version = "1.0"
|
||||||
|
-- prefix = "playstore|play|appstore|store"
|
||||||
|
|
||||||
|
text_from = ""
|
||||||
|
text_to = ""
|
||||||
|
|
||||||
|
local md_color = require "md_colors"
|
||||||
|
local green = md_colors.green_600
|
||||||
|
|
||||||
|
function on_search(input)
|
||||||
|
text_from = input
|
||||||
|
text_to = ""
|
||||||
|
search:show({input},{green})
|
||||||
|
end
|
||||||
|
|
||||||
|
function on_click(idx)
|
||||||
|
system:open_browser("https://play.google.com/store/search?q="..text_from)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user