I'm not yet interested in using Zettelkasten Method to organize my org files. I just use a hierarchical index (index.org
). So I don't have the use of packages such as org-roam
or denote
.
However, I'm quite interested in being able to use denote
's file-naming scheme.
Every note produced by Denote follows this pattern (Points of entry):
DATE--TITLE__KEYWORDS.EXTENSION
The
DATE
field represents the date inyear-month-day
format followed by the capital letterT
(for “time”) and the current time in hour-minute-second notation. The presentation is compact: 20220531T091625. The DATE serves as the unique identifier of each note.The
TITLE
field is the title of the note, as provided by the user. It automatically gets downcased and hyphenated. An entry about “Economics in the Euro Area” produces aneconomics-in-the-euro-area string
for theTITLE
of the file name. [...] The EXTENSION is the file type. By default, it is .org (org-mode) [...]
If we say an org-link [[l][r]]
is composed of two elements, l
and r
. And that l
is composed of 4 elements p
, d
, t
, e
, where
p
is a path (a series of directories names),d
, the 1st part of the file name, is the current date,t
, the 2d part of the file name, isT
(the title of the document) downcased and hyphenated,e
, the 3d part of the file name, is the.org
extension
I'd like to create a command that would ask me for p
and T
(the document title). Then it would automatically produce a link with:
l
=p
+d
+t
+e
r
=T
Optionally the file would be opened in a new buffer with the following content:
#+TITLE:
T
How could I achieve this?
ol-man.el
(unfortunately though I'm not yet able to fully understand it) to my use case, and post the code here if I manage to make it work.