-
-
Notifications
You must be signed in to change notification settings - Fork 220
Promo
github-actions[bot] edited this page Feb 25, 2025
·
33 revisions
The promo
module increases or decreases the nesting level of nestable items by repeating their characters.
When dealing with Norg, it may sometimes be tedious to continually repeat a single character to increase
your nesting level. For example, for a level 6 nested unordered list, you need to repeat the -
character
six times:
------ This is my item!
The core.promo
module allows you to indent these object by utilizing the inbuilt Neovim keybinds:
-
>>
- increase the indentation level for the current object (also dedents children) -
<<
- decrease the indentation level for the current object recursively (also dedents children) -
>.
- increase the indentation level for the current object (non-recursively) -
<,
- decrease the indentation level for the current object (non-recursively)
In insert mode, you are also provided with two keybinds, also being Neovim defaults:
-
<C-t>
increase the indentation level for the current object -
<C-d>
decrease the indentation level for the current object
This module is commonly used with the core.itero
module for an effective workflow.
This module exposes the following keybinds (see core.keybinds
for instructions on
mapping them):
-
neorg.promo.promote
- Promote item on current line -
neorg.promo.promote.nested
- Promote current line and nested items -
neorg.promo.promote.range
- Promote all items in range -
neorg.promo.demote
- similar -
neorg.promo.demote.nested
- similar -
neorg.promo.demote.range
- similar
This module provides no configuration options!
-
core.esupports.indent
- A set of instructions for Neovim to indent Neorg documents. -
core.integrations.treesitter
- A module designed to integrate Treesitter into Neorg.
core.autocommands
core.clipboard
core.clipboard.code-blocks
core.completion
core.concealer
core.defaults
core.dirman
core.dirman.utils
core.esupports.hop
core.esupports.indent
core.esupports.metagen
core.export
core.export.markdown
core.fs
core.highlights
core.integrations.coq_nvim
core.integrations.nvim-cmp
core.integrations.nvim-compe
core.integrations.treesitter
core.itero
core.journal
core.keybinds
core.latex.renderer
core.looking-glass
core.neorgcmd
core.neorgcmd.commands.return
core.pivot
core.presenter
core.promo
core.qol.toc
core.qol.todo_items
core.queries.native
core.scanner
core.storage
core.summary
core.syntax
core.tangle
core.tempus
core.text-objects
core.todo-introspector
core.ui
core.ui.calendar