Incremental Note Name

Incremental Note Name

QuickAdd user script for sequental note numbering

Incremental note names for Obsidian

This is a script to help generate incrementally numbered note names, such as:

  • ADR 013 - Use AWS SQS
  • RFC862 Echo Protocol
  • [BUG-1348] Splines not reticulated

Requirements

Setup

  1. Drop the Incremental.js file from this repository into your vault.
  2. Create a QuickAdd macro (under "Manage Macros"). image
  3. Add the user script as a macro step. image
  4. Configure the user script step. The query should at least filter by the target folder (remember that DataView wants folder names to be quoted). If your target folder contains other types of files that you don't want to be counted, you can add additional conditions such as tags. image
  5. Add a template macro step. Use the variables exposed by the user script to format the file name you want. Make sure the target folder matches your query expression. image
  6. Set up your template as you want. Here you can also use the variables exposed by the user script; see the example template. image

The user script also exposes the FileName function that you can use with the QuickAdd {{MACRO:}} syntax, but it is less flexible and less convenient than the setup above. In this case, the macro name chosen in step 2 is significant and must match the expression. image

Related

How to Install

  1. Download the template file from GitHub
  2. Move it anywhere in your vault
  3. Open it in Obsidian — done!

Stats

Stars

9

Forks

0

License

MIT

Last updated 40mo ago

Categories