Skip to content

Summary

github-actions[bot] edited this page Jul 16, 2024 · 34 revisions

core.summary

Write notes, not boilerplate.

The summary module creates links and annotations to all files in a given workspace.

Overview

The core.summary module exposes a single command - :Neorg generate-workspace-summary.

When executed with the cursor hovering over a heading, core.summary will generate, you guessed it, a summary of the entire workspace, with links to each respective entry in that workspace.

If arguments are provided then a partial summary is generated containing only categories that you have provided. E.g. :Neorg generate-workspace-summary work todos would only generate a summary of the categories work and todos.

The way the summary is generated relies on the strategy configuration option, which by default consults the document metadata (see also core.esupports.metagen) or the first heading title as a fallback to build up a tree of categories, titles and descriptions.

Configuration

  • strategy
    (string)

    The strategy to use to generate a summary.

    Possible options are:

    • "default" - read the metadata to categorize and annotate files. Files without metadata will use the top level heading as the title. If no headings are present, the filename will be used.
    • "by_path" - Similar to "default" but uses the capitalized name of the folder containing a *.norg file as category. @type string|fun(files: PathlibPath[], ws_root: PathlibPath, heading_level: number?, include_categories: string[]?): string[]?
    "default"

Dependencies

Clone this wiki locally