local M = {}

function M.generate_shortcut_maps()
    local shortcuts = require("config.shortcuts")
    local fs = require("neo-tree.sources.filesystem")
    local maps = {}
    for map, path in pairs(shortcuts) do
        maps[map] = function(state)
            fs.navigate(state, path, ".", function() end)
        end
    end
    return maps
end

function M.get_secret(key)
    local ok, keys = pcall(require, "config.secrets")
    if ok then
        return keys[key]
    end
end

return M