Docs
Tips
Helpful tips that can make writing Nota extensions easier and more pleasant (sorted by significance):
- Use Nota's command line interface inside your scripts to open files and workspaces inside Nota.
- Have you tried using google/zx for writing scripts. It's an easy and powerful experience.
- You can write an extension in any programming language you are familiar with. For example, name your custom command
my-custom-command.js
and put#!/usr/bin/env node
as a first line to write your extension in JavaScript. Note that you need Node installed on your system. - Each script working directory (CWD) points to the workspace root. For example, you can directly run
git push
, without the need to executecd /path/to/workspace
first. - Have you considered adopting already existing scripts by just adding the
@parameters
syntax to them? - If you writing Bash scripts, use SpellCheck to check your scripts. There are also extensions for VSCode and JetBrains. We also use Devhints.io bash scripting cheatsheet to remind us of Bash peculiar syntax.