Config

This configuration covers all hooks related sections

General Options

id

Unique id for the hook. This also corresponds to the javascript file that will be created under {workspace}/hooks/{id}.js

pattern

  • default: *

A glob pattern that determines what notes the hook will be active for.

type

Type of script. Currently we support js scripts and might add additional options in the future.

Hook Types

onCreate

Runs when a note is created

Examples

hooks:
    onCreate:
        -
            id: hello
            pattern: '*'
            type: js

Backlinks