-
-
Notifications
You must be signed in to change notification settings - Fork 240
Exporting Files
Exports Neorg documents into any other supported filetype.
All export functionality is provided by the :Neorg export command.
To export the currently opened buffer to another file format, you should use the :Neorg export to-file command.
The command takes the following arguments:
-
path- the path to export to. Examples are:my-file.md,~/output.md. If the second argument is not provided Neorg will try to infer the filetype to convert to through the file extension. -
filetype(optional) - the filetype to export to. Useful if you want to use a non-standard extension, or if the filetype you're using cannot be inferred automatically. Note that this filetype must be a filetype that Neovim itself provides and/or understands, i.e.mdormarkdis not a valid filetype, howevermarkdownis.
Neorg also supports exporting a directory of files: this is where the :Neorg export directory command comes into play.
It takes 3 arguments:
-
directory- the directory to export -
filetype- the filetype to export to -
output-dir(optional) - a custom output directory to use. If not provided will fall back toconfig.public.export_dir(see configuration).
- export_dir
-
The directory to export to when running `:Neorg export directory`.
The string can be formatted with the special keys: `` and ``.
Default value:
"<export-dir>/<language>-export"
This module defines no keybinds.
- To manually load the module, place this code in your Neorg setup:
Consult the configuration section to see how you can configure
["core.export"] = { config = { -- Note that this table is optional and doesn't need to be provided -- Configuration here } }
core.exportto your liking.
This segment will detail all of the functions core.export exposes. All of these functions reside in the public table.
exportget_converter
None Provided
This module supports at least version 0.0.18. The current Neorg version is 0.0.18.
This module does not import any other files.
-
core.integrations.treesitter- A module designed to integrate TreeSitter into Neorg.
This module isn't required by any other module.
core.autocommandscore.clipboardcore.clipboard.code-blockscore.completioncore.concealercore.defaultscore.dirmancore.dirman.utilscore.esupports.hopcore.esupports.indentcore.esupports.metagencore.exportcore.export.htmlcore.export.markdowncore.fscore.highlightscore.integrations.coq_nvimcore.integrations.nvim-cmpcore.integrations.nvim-compecore.integrations.treesittercore.iterocore.journalcore.keybindscore.latex.renderercore.looking-glasscore.neorgcmdcore.neorgcmd.commands.returncore.pivotcore.presentercore.promocore.qol.toccore.qol.todo_itemscore.queries.nativecore.scannercore.storagecore.summarycore.syntaxcore.tanglecore.tempuscore.text-objectscore.todo-introspectorcore.uicore.ui.calendar