neorg icon indicating copy to clipboard operation
neorg copied to clipboard

`:Neorg export directory <dir> <filetype>` not working as expected

Open Sammyalhashe opened this issue 2 years ago • 0 comments

Prerequisites

  • [X] I am using the latest stable release of Neovim
  • [X] I am using the latest version of the plugin

Neovim Version

v0.9.2

Neorg setup

neorg.setup {
    load = {
        ["core.defaults"] = {},
        ["core.neorgcmd"] = {},
        ["core.keybinds"] = {
            config = {
                hook = function(keybinds)
                    keybinds.remap_key("norg", "n", "<C-Space>", "<Leader>tn")
                end,
            }
        },
        ["core.concealer"] = {},
        ["core.looking-glass"] = {},
        ["core.dirman"] = {
            config = {
                workspaces = loadGlobal(vim.g.workspaces, {})
            },
            default_workspace = "personal"
        },
        ["core.completion"] = {
            config = {
                engine = "nvim-cmp",
            },
        },
        ["core.integrations.nvim-cmp"] = {},
        ["core.syntax"] = {},
        ["core.integrations.treesitter"] = {},
        -- ["core.gtd.base"] = {
        --     config = {
        --         workspace = "work"
        --     },
        -- },
        ["core.export"] = {config = {extensions = "all"}},
        ["core.presenter"] = {
            config = {
                zen_mode = "zen-mode"
            },
        },
        ["core.journal"] = {
            config = {
                journal_folder = utils.expandFilePath(loadGlobal(vim.g.neorg_journal_folder, "")),
                workspace = "journal",
                template_name = "template.norg",
                use_template = true,
                strategy = "nested",
                toc_format = function(t)
                    return t
                end
            },
        },
        ["core.integrations.telescope"] = {},
    }
}

Actual behavior

It's creating an empty directort <directory>-<filetype> which seems as expected, but this directory is empty.

Expected behavior

I expect the directory to be filled with exported documents in the filetype expected and in the same nested structure.

Steps to reproduce

  • Open a neorg file to activate the export module
  • Run `:Neorg export directory

I doubt this has anything to do with conflicting plugins here.

Sammyalhashe avatar Oct 15 '23 03:10 Sammyalhashe