feat(neo-tree): add mapping "O" to open with system default

This commit is contained in:
Uthman Mohamed 2024-03-17 23:09:01 -04:00
parent 864c58cae6
commit 9b86dca4ee

View file

@ -69,6 +69,14 @@ return {
end,
desc = "copy path to clipboard",
},
["O"] = {
command = function(state)
local filepath = state.tree:get_node().path
os.execute("open " .. string.format("'%s'", filepath))
end,
desc = "open_with_system_defaults",
},
},
},
default_component_configs = {