[Plugin] New Lower-Level Note: automation of the folgezettel filenaming approach
This is one of two plugins for The Archive that automate the folgezettel naming convention.
The New Note Sequence plugin creates a new note sequence automatically.
The plugin looks for the Folgezettel ID in the filename, extracts it, and creates a new note with the filename based on the current note, selected in The Archive.
It also creates a heading of the level 1 with the Folgezettel ID.
Post edited by ctietze on
Howdy, Stranger!
Comments
I have updated the plug-in and added a thorough description of its functionality.
The previous version of the plug-in implemented a different approach to the alphabetical values of the Folgezettel ID. That approach caused the sorting inconsistencies, exemplified in the extreme cases when the alphabetical part of the existing Folgezettel ID ended with a
z
character and the next alphabetical value would beaa
, so the new note went aftera
value and appeared earlier in the sequence.The current plug-in version implements another logic in the same extreme case it adds an
a
value to thez
value, so the following thez
value becomesza
in this example.The New Note Sequence plug-in release of the 1.1.0 version is available on the same GitHub page.
The new description of the plug-in is presented below:
The New Note Sequence plug-in is supposed to work in a Folgezettel-based Zettelkasten.
The plug-in ignores any occurrences of Citekeys as
Baljeu1974
or Timestamp IDs as202412291635
in the filenames. It extracts the Folgezettel ID from the selected note’s filename. Then the plug-in compares the extracted ID to the rest ones presented in the filenames to generate the next available Folgezettel ID of the new level related to the one in the selected note’s filename.The plug-in will extract Folgezettel ID from any position in the filename, assuming
1,1a Note name
,Note name 1,2c
,Note Name 1,3f with additional information in the filename
as possible examples. The plug-in will ignore and won’t extract a Folgezettel ID if the selected note filename contains a Timestamp ID or a Citekey.The following list of notes’ filenames is the basis for the description of the plug-in algorithms.
1
1,1
1,2
1,2a
1,2b
1,3
2
2,1
2,1a
…
2,1z
Assuming that the selected note has a filename of
1,2a
, the plug-in will create a note with1,2a1
filename and theH1 level
heading with the new Folgezettel ID as its content.For the filenames ending with the digital part of the Folgezettel ID, the plug-in creates an available Folgezettel ID of the next level, following the same logic as with the alphabetical parts. For example, the filename
1,2
will result in the note with the Folgezettel ID1,2c
, and the filename2
gives a Folgezettel ID of2,2
.In the extreme cases, when the alphabetical part of the existing Folgezettel ID ends with the
z
character, the new ID generated by adding ana
character at the end of the initial alphabetical part. The new level of Folgezettel ID for the note2,1
will become2,1za
because2,1z
exists in the exemplified note list.I have changed the name of the plug-in to the New Lower-Level Note, based on this discussion.
The New Lower-Level Note plug-in release of the 1.1.1 version is available on the same GitHub page.
👍 I renamed the discussion accordingly!
Author at Zettelkasten.de • https://christiantietze.de/