I am working on a macro that should allow me to quickly create textfiles that all have some predefined content. I can figure out almost everything, but what I’m struggling with is how to use a variable I created, which holds the next number the textfile should get and use it in the file creation.
I have files that look like this:
…and so on
So basically I’m just counting upwards. The naming pattern for these files is clear: zettel-$nextnumber. But how do I get KM to create a file in the first place (it seems I could duplicate one) and how do I use variables while naming files? Is it necessary to use a script for that (I guess something like touch zettel-$nextnumberwould work)?