Core UI
github-actions[bot] edited this page Jun 25, 2022
·
224 revisions
Pages 45
Setting Up
For the programmer
- Writing my own module
- Hotswapping modules
- Difference between module.public and module.config.public
- Metamodules
Inbuilt modules:
core.autocommands
core.export
core.export.markdown
core.gtd.base
core.integrations.treesitter
core.keybinds
core.mode
core.neorgcmd
core.norg.completion
core.norg.concealer
core.norg.dirman
core.norg.esupports.hop
core.norg.esupports.indent
core.norg.esupports.metagen
core.norg.journal
core.norg.manoeuvre
core.norg.news
core.norg.qol.toc
core.norg.qol.todo_items
core.presenter
core.syntax
core.tangle
Clone this wiki locally
Module for managing and displaying UIs to the user.
A set of public functions to help developers create and manage UI (selection popups, prompts...) in their modules.
Overview
Usage
How to Apply
- To manually load the module, place this code in your Neorg setup:
Consult the configuration section to see how you can configure
["core.ui"] = { config = { -- Note that this table is optional and doesn't need to be provided -- Configuration here } }
core.ui
to your liking.
Configuration
This module exposes no customization options.
Developer Usage
Public API
This segment will detail all of the functions core.ui
exposes. All of these functions reside in the public
table.
apply_custom_options
create_norg_buffer
delete_window
apply_buffer_options
create_vsplit
create_split
begin_selection
create_display
get_window_size
create_prompt
invoke_key_in_selection
Examples
Create a selection popup
-- Creates the buffer
title
return self:text(text, "TSTitle")
Extra Info
Version
This module supports at least version 0.0.11. The current Neorg version is 0.0.11.
Imports
Requires
This module does not require any other modules to operate.
Required by
-
core.gtd.ui
- Nicely displays GTD related information. -
core.norg.dirman
- This module is be responsible for managing directories full of .norg files. -
core.norg.news
- Handles the displaying of Neorg news and other forms of media in a popup. -
core.norg.esupports.hop
- "Hop" between Neorg links, following them with a single keypress. -
core.norg.qol.toc
- Generates a Table of Content from the Neorg file. -
core.neorgcmd.commands.module.list
- List loaded modules. -
core.presenter
- Neorg module to create gorgeous presentation slides.