Skip to content

eahanson/document-sections.novaextension

Repository files navigation

Sometimes, despite your best efforts, a document gets very large and hard to navigate, and for whatever reason, the language server can't help you navigate. This extension provides commands to let you go to a specific section of a document, or to go to the previous or next section.

A section is defined by a line of text that starts with a section indicator, optionally followed by some text terminated by a newline.

screenshot

Usage

To run Document Sections:

  • Select the Editor → Document Sections → Go to Section… menu item; or
  • Select the Editor → Document Sections → Go to Previous Section menu item; or
  • Select the Editor → Document Sections → Go to Next Section menu item; or
  • Open the command palette and type Go to Section…

Other Nova extensions you might like :)

  • Copy Path copies the absolute or relative path of the current file, optionally including the line number and column number. GitHub / website

  • Document Sections lets you jump around to various sections in a text document using a customizable marker (typically a code comment in a certain format). GitHub / website

  • Elixir Manual Formatter lets you manually format an Elixir file or entire project, in case the LSP formatter starts failing. GitHub / website

  • Go To Tab shows a list of open editors and lets you choose one to go to. GitHub / website

  • Open File At Path opens a palette into which you can type a file path and optionally line number and column number. The palette will default to the first line of text from the clipboard. GitHub / website

  • Open Recent shows a list of recently-used editors and lets you choose one to open. GitHub / website

  • Open Related File opens a file related to the current file. GitHub / website

  • Smart Sort Lines sorts the selected lines of code with special support for comma-separated lists. GitHub / website

  • Trail lets you create a trail of editor positions as you navigate code so that you can easily get back to where you came from. GitHub / website

License, Copyright, Attributions

Copyright 2023 Erik Hanson. See LICENSE.

About

Nova extension for navigating between document sections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published