Docs

Custom Commands

Custom commands are an easy way to extend Nota. They show in the Go → Command Palette... ⌘⇧p just like any other Nota command. You can also assign a shortcut to each custom command.

Open the Go → Command Palette... ⇧⌘p and search for "Create New Custom Command". This will create a file that will be pre-filled with a template command that when executed copies the opened file's path to the clipboard.

#!/bin/bash
# @parameters file
printf "%s" "$1" | pbcopy

Custom commands are located at path/to/your/workspace/.nota/commands (e.g. ~/Dropbox/Nota/.nota/commands/upload-gist.sh).

@parameters

If you aren't familiar with the @parameters syntax, read the article first.

@parameters tells Nota which values to pass to the script:

Ideas for custom commands