mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 08:16:10 +01:00
16 lines
335 B
Lua
16 lines
335 B
Lua
VERSION = "2.0.0"
|
|
|
|
MakeCommand("fzf", "fzf.fzf", 0)
|
|
|
|
function fzf()
|
|
if CurView():CanClose() then
|
|
RunTermEmulator("fzf", false, true, "fzf.handleFzfOutput")
|
|
end
|
|
end
|
|
|
|
function handleFzfOutput(output)
|
|
local strings = import("strings")
|
|
CurView():Open(strings.TrimSpace(output))
|
|
end
|
|
|
|
AddRuntimeFile("fzf", "help", "help/fzf.md") |