Custom Commands

Custom commands are an easy way to extend Nota. They show in the Command Palette... p just like any other Nota command.

Open the View → 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
pbcopy $1

@parameters

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

Multiple values should be separated by spaces: @parameters workspace file. This will make $1 the path to the currently opened workspace and $2 the currently edited file.

Ideas for custom commands

Related