mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
expand ~ for terminal locations
This commit is contained in:
parent
f4fb2a5544
commit
65b693b92d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user