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
If you aren't familiar with the
@parameters syntax, read the article first.
@parameters tells Nota which values to pass to the script:
file– the path to the currently opened file
workspace– the path to the currently opened workspace
Ideas for custom commands
- Archive — Move the currently opened file to your "archive" folder.
- Tmp file — Open your
- Upload as Gist – Upload the currently opened file as a gist. Useful for sharing something quickly. You can use Potentially the best command line gister.
- Blog publish — Publish your current file to your favorite blog.
- Git commands. You can
- Export to HTML — Export the current file to HTML and save it in your "HTML exports" folder.