Replies: 1 comment 3 replies
-
Hello @ldedev, To answer your first question Flow Launcher will search every folder in its
The short answer is yes. As long as the program can receive arguments and communicate to
Of those languages i am only familar with LUA really so I can provide a simple "class" that communicates with Flow Launcher like so: (I just whipped this up as an example, code could be better?) local json = require("json")
local FlowLauncher = {}
function FlowLauncher:new()
local newObj = {}
self.__index = self
return setmetatable(newObj, self)
end
function FlowLauncher:run()
self.rpc_request = json.decode(arg[1])
local method = self.rpc_request["method"]
local parameters = self.rpc_request["parameters"]
local results = self[method](self, unpack(parameters))
output = {
["results"] = results
}
print(json.encode(output))
end
function FlowLauncher:query(param)
-- This method is ran when the user enters your plugin keyword on Flow Launcher
return {}
end
function FlowLauncher:context_menu(data)
-- optional context menu entries for a result
return {}
end Plugin example: input: local myPlugin = FlowLauncher:new()
function myPlugin:query(param)
local result = {
{
Title = "Hello World",
SubTitle = "This is the first plugin",
IcoPath = "Images\\ico.png",
}
}
return result
end
myPlugin:run() Output: |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to build a plugin in Vlang, but I don't quite understand how to do it.
I didn't understand how to install a plugin manually without the need for the store.
"ExecutablePath" I can pass a ".exe"? what does main(or similar) expect?
Can someone get me an implementation example in Golang/rust/lua etc... that doesn't need the FlowLauncher sdk, so that I can implement it in an equivalent way in Vlang.
Beta Was this translation helpful? Give feedback.
All reactions