#!/usr/bin/env sh
SUBDIR="${2:-./}"
mkdir -p "$NOTES_PATH/$SUBDIR"
"$EDITOR" "$NOTES_PATH/$SUBDIR/$1"