EFLS / zetteldeft

A Zettelkasten system! Or rather, some functions on top of the emacs deft package.
https://efls.github.io/zetteldeft
GNU General Public License v3.0
394 stars 42 forks source link

FeatureRequest: create new note in a sub-directory #128

Open NicholasBHubbard opened 2 years ago

NicholasBHubbard commented 2 years ago

I would like to organize my notes is sub-directories relative to my deft-directory:

.
├── Project1
│   ├── 2021-12-03-1559\ note1
│   ├── 2021-12-04-1445\ note2
│   ├── 2021-12-05-1110\ note3
│   └── SubProject1
│       └── 2021-12-05-1830\ somesubnote
├── Project2
│   ├── 2021-11-01-1830\ note4
│   └── 2021-11-04-1130\ note5
├── Project3
│   └── 2021-10-23-1430\ blahnote
├── 2021-08-12-11-45\ toplevel-note1
└── 2021-07-11-13\ toplevel-note2

The problem is that when I cannot figure out how to create a new note with zetteldeft-new-file that is automatically placed in a sub-directory.

It would be nice if I could create such a note by including the directory names in the name of the new note. For example say I wanted to create a new note foo in SubProject1 I could name the new note Project1/SubProject1/foo.

I am getting by at the moment by manually moving new notes into the sub-directories.

(great project by the way)

EFLS commented 2 years ago

Glad you like the project. At its core, the Zetteldeft philosophy is to keep a flat file hierarchy – in other words: all notes in the same directory. But I can see why you'd want this. Not sure what a good approach would be to achieve this, while keeping everything as simple as possible though.