Skip to content
github-actions[bot] edited this page Jul 16, 2024 · 27 revisions

core.pivot

Ordered or Unordered?

That is was the question. Now you no longer have to ask!

Overview

core.pivot allows you to switch (or pivot) between the two list types in Norg with the press of a button.

Keybinds

This module exposes two keybinds:

  • core.pivot.toggle-list-type (default binding: <LocalLeader>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: <LocalLeader>li ["list invert"]) - same behaviour as the previous keybind, however respects mixed lists - unordered items will become ordered, whereas ordered items will become unordered.

Configuration

This module provides no configuration options!

Dependencies

Clone this wiki locally