expand ~ for terminal locations

This commit is contained in:
Brian Ryall 2021-02-19 15:29:05 -05:00
parent f4fb2a5544
commit 65b693b92d

View File

@ -45,8 +45,15 @@ function getCmd(idx)
return commandSet[idx]
end
M.setup = function(config)
harpoon_terminal_config = config.terminal or {}
M.setup = function(config)
local expanded_config = {}
for k in pairs(config.terminal) do
local expanded_path = Path.new(k):expand()
expanded_config[expanded_path] = config.terminal[k]
end
harpoon_terminal_config = expanded_config or {}
end
M.gotoTerminal = function(idx)