Skip to content

Create a list of subnotes

Kristoffer Bernssen edited this page Jan 12, 2019 · 2 revisions

Create a file.sh with the following content:

#!/bin/bash

#print subnotes

DIR=${1%.*}

find $DIR -type f -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- | cut -f 1 -d '.'

Create a custom command using the following and check the "..replace current selection":

/path/to/file.sh %s

Clone this wiki locally