diff --git a/lua/neorg/modules/core/dirman/module.lua b/lua/neorg/modules/core/dirman/module.lua index c43fd33b5..d2eb4db56 100644 --- a/lua/neorg/modules/core/dirman/module.lua +++ b/lua/neorg/modules/core/dirman/module.lua @@ -36,7 +36,7 @@ After a recent update `core.dirman` will no longer change the current working di workspace. To get the best experience it's recommended to set the `autochdir` Neovim option. -### Create a new note +### Create a new note (in lua) You can use dirman to create new notes in your workspaces. ```lua @@ -47,6 +47,14 @@ dirman.create_file("my_file", "my_ws", { metadata = {} -- key-value table for metadata fields }) ``` + +## Keybinds + +This module exposes the following keybinds (see [`core.keybinds`](@core.keybinds) for instructions on +mapping them): + +- `neorg.dirman.new-note` - Create a new note in the current workspace, prompt for name + --]] local Path = require("pathlib") diff --git a/lua/neorg/modules/core/esupports/hop/module.lua b/lua/neorg/modules/core/esupports/hop/module.lua index aa3748321..eddfedff8 100644 --- a/lua/neorg/modules/core/esupports/hop/module.lua +++ b/lua/neorg/modules/core/esupports/hop/module.lua @@ -9,6 +9,14 @@ The hop module serves to provide an easy way to follow and fix broken links with By default, pressing `` in normal mode under a link will attempt to follow said link. If the link location is found, you will be taken to the destination - if it is not, you will be prompted with a set of actions that you can perform on the broken link. + +## Keybinds + +This module exposes the following keybinds (see [`core.keybinds`](@core.keybinds) for instructions on +mapping them): + +- `neorg.esupports.hop.hop-link` - Follow the link under the cursor, seeks forward +- `neorg.esupports.hop.hop-link.vsplit` - Same, but open the link in a vertical split --]] local neorg = require("neorg.core") diff --git a/lua/neorg/modules/core/integrations/treesitter/module.lua b/lua/neorg/modules/core/integrations/treesitter/module.lua index d6e06d62a..9af714e5d 100644 --- a/lua/neorg/modules/core/integrations/treesitter/module.lua +++ b/lua/neorg/modules/core/integrations/treesitter/module.lua @@ -5,6 +5,16 @@ embed: https://user-images.githubusercontent.com/76052559/151668244-9805afc4-8c50-4925-85ec-1098aff5ede6.gif internal: true --- + +## Keybinds + +This module exposes the following keybinds (see [`core.keybinds`](@core.keybinds) for instructions on +mapping them): + +- `neorg.treesitter.next.heading` - jump to the next heading +- `neorg.treesitter.next.link` - jump to the next link +- `neorg.treesitter.previous.heading` - jump to the previous heading +- `neorg.treesitter.previous.link` - jump to the previous link --]] local neorg = require("neorg.core") diff --git a/lua/neorg/modules/core/itero/module.lua b/lua/neorg/modules/core/itero/module.lua index 3c0abc3bd..cc37cceb7 100644 --- a/lua/neorg/modules/core/itero/module.lua +++ b/lua/neorg/modules/core/itero/module.lua @@ -9,7 +9,7 @@ headings and other repeatable (iterable) items. By default, the key that is used to iterate on an item is `` (Alt + Enter). If you want to -change the bind, remap the `core.itero.next-iteration` event. +change the bind, remap the `neorg.itero.next-iteration` event. Begin by writing an initial item you'd like to iterate (in this instance, and unordered list item): ```md diff --git a/lua/neorg/modules/core/looking-glass/module.lua b/lua/neorg/modules/core/looking-glass/module.lua index 42ec1f654..5b8dba648 100644 --- a/lua/neorg/modules/core/looking-glass/module.lua +++ b/lua/neorg/modules/core/looking-glass/module.lua @@ -8,10 +8,15 @@ The looking glass module provides a simple way to edit code blocks in an external buffer, which allows LSPs and other language-specific tools to kick in. -The magnify command can be accessed by running `:Neorg keybind all -core.looking-glass.magnify-code-block` with your cursor underneath the code -block you would like to magnify - it is not bound to any key as of currently, -but you may map it yourself via the [`core.keybinds`](@core.keybinds) module. +If you would like LSP features in code blocks without having to magnify, you can use +[`core.integrations.otter`](@core.integrations.otter). + +## Keybinds + +This module exposes the following keybinds (see [`core.keybinds`](@core.keybinds) for instructions on +mapping them): + +- `neorg.looking-glass.magnify-code-block` - magnify the code block under the cursor --]] local neorg = require("neorg.core") diff --git a/lua/neorg/modules/core/pivot/module.lua b/lua/neorg/modules/core/pivot/module.lua index 69a9d32d0..98251dec2 100644 --- a/lua/neorg/modules/core/pivot/module.lua +++ b/lua/neorg/modules/core/pivot/module.lua @@ -6,13 +6,15 @@ --- `core.pivot` allows you to switch (or pivot) between the two list types in Norg with the press of a button. -### Keybinds +## Keybinds -This module exposes two keybinds: -- `core.pivot.toggle-list-type` (default binding: `lt` ["list toggle"]) - takes a +This module exposes the following keybinds (see [`core.keybinds`](@core.keybinds) for instructions on +mapping them): + +- `neorg.pivot.list.toggle` (default binding: `lt` ["list toggle"]) - takes a list and, based on the opposite type of the first list item, inverts all the other items in that list. Does not respect mixed lists, all items in the list will be converted to the same type. -- `core.pivot.invert-list-type` (default binding: `li` ["list invert"]) - same behaviour as +- `neorg.pivot.list.invert` (default binding: `li` ["list invert"]) - same behaviour as the previous keybind, however respects mixed lists - unordered items will become ordered, whereas ordered items will become unordered. --]] diff --git a/lua/neorg/modules/core/presenter/module.lua b/lua/neorg/modules/core/presenter/module.lua index 8fe6a2abe..de1594ac5 100644 --- a/lua/neorg/modules/core/presenter/module.lua +++ b/lua/neorg/modules/core/presenter/module.lua @@ -11,8 +11,18 @@ To set it up, first be sure to set the `zen_mode` variable in the [configuration Afterwards, run `:Neorg presenter start` on any Norg file. The presenter will split up your file at each level 1 heading, and display each in a different slide. -NOTE: This module is due for a rewrite. All of its behaviour is not fully documented here as it will be -overwritten soon anyway. +NOTE: This module is due for a rewrite. All of its behaviour is not fully documented here as it will +be overwritten soon anyway. + +## Keybinds + +This module exposes the following keybinds (see [`core.keybinds`](@core.keybinds) for instructions on +mapping them): + +- `neorg.presenter.next-page` - go to next page +- `neorg.presenter.previous-page` - go to previous page +- `neorg.presenter.close` - close presentation view + --]] local neorg = require("neorg.core") diff --git a/lua/neorg/modules/core/promo/module.lua b/lua/neorg/modules/core/promo/module.lua index 9da7b0b03..e48266fcc 100644 --- a/lua/neorg/modules/core/promo/module.lua +++ b/lua/neorg/modules/core/promo/module.lua @@ -22,6 +22,19 @@ In insert mode, you are also provided with two keybinds, also being Neovim defau - `` decrease the indentation level for the current object This module is commonly used with the [`core.itero`](@core.itero) module for an effective workflow. + +## Keybinds + +This module exposes the following keybinds (see [`core.keybinds`](@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 + --]] local neorg = require("neorg.core") diff --git a/lua/neorg/modules/core/qol/todo_items/module.lua b/lua/neorg/modules/core/qol/todo_items/module.lua index 7bcf97e35..b5a4dd12b 100644 --- a/lua/neorg/modules/core/qol/todo_items/module.lua +++ b/lua/neorg/modules/core/qol/todo_items/module.lua @@ -6,7 +6,7 @@ This module handles the whole concept of toggling TODO items, as well as updating parent and/or children items alongside the current item. -The following keybinds are exposed: +The following keybinds are exposed (with their default binds): - `(neorg.qol.todo-items.todo.task-done)` (`td`) - `(neorg.qol.todo-items.todo.task-undone)` (`tu`) - `(neorg.qol.todo-items.todo.task-pending)` (`tp`) diff --git a/lua/neorg/modules/core/tempus/module.lua b/lua/neorg/modules/core/tempus/module.lua index 4f613b4d2..df976f123 100644 --- a/lua/neorg/modules/core/tempus/module.lua +++ b/lua/neorg/modules/core/tempus/module.lua @@ -7,6 +7,14 @@ `core.tempus` is an internal module specifically designed to handle complex dates. It exposes two functions: `parse_date(string) -> date|string` and `to_lua_date(date) -> osdate`. + +## Keybinds + +This module exposes the following keybinds (see [`core.keybinds`](@core.keybinds) for instructions on +mapping them): + +- `neorg.tempus.insert-date` - Insert date at cursor position (called from normal mode) +- `neorg.tempus.insert-date.insert-mode` - Insert date at cursor position (called from insert mode) --]] local neorg = require("neorg.core")