fix: Multiple Previewer fixes (#225)
Fixes previews for files beginning with ~/ Previewer will now show directories Fix if clause with vim.fn.executable
This commit is contained in:
@@ -190,4 +190,11 @@ function utils.display_termcodes(str)
|
||||
return str:gsub(string.char(9), "<TAB>"):gsub("", "<C-F>"):gsub(" ", "<Space>")
|
||||
end
|
||||
|
||||
function utils.get_os_command_output(cmd)
|
||||
local handle = assert(io.popen(cmd, 'r'))
|
||||
local output = assert(handle:read('*a'))
|
||||
assert(handle:close())
|
||||
return output
|
||||
end
|
||||
|
||||
return utils
|
||||
|
||||
Reference in New Issue
Block a user