12 Commits

Author SHA1 Message Date
d164562b54 Make sure the rootFolder says "Root Folder"
Instead of some empty text
2023-01-20 12:52:06 +01:00
812860aa78 FlattenedNotesFolders: Update the note internally when modified
This wasn't needed before as notes were passed by reference. Whereas
they are now immutable.
2022-01-20 12:26:58 +01:00
0997844e4e FlattenedNotesFolder: Optimize
Using a list causes quite a big slowdown when inserting notes as one has
to check if the note has already been inserted.
2022-01-05 15:51:32 +01:00
4d337c3d6f Find index numbers in the FlattenedNotesFolder
I'm an idiot
2022-01-05 15:27:25 +01:00
812a7b5263 FlattenedNotesFolder: Fix note index 2021-12-22 21:30:39 +01:00
7830737a17 cleanup 2021-12-20 09:28:00 +01:00
391ad685a8 NotesFolderFS: Update the entity map as well
urgh.
2021-12-20 09:28:00 +01:00
1bd735940b FlattenedNotesFolder: Do not allow duplicates
And make everything a bit faster.
2021-12-20 09:28:00 +01:00
e589d1c1eb Experiment with a CalendarView 2021-11-15 12:39:12 +01:00
e1ea7a4953 Fetch the modified + created time from git
Fixes #78

This is probably the largest commit that I have ever made. From now on -
every File always has an mtime and ctime which is fetched from git.
Notes can optionally override that time by providing yaml metadata.

Additionally the 'filePath' and 'folderPath' is now relative to the
repoPath instead of being the full path.

This will slow down GitJournal like crazy as all the mtimes and ctime
still need to be cached. For my test repo it takes about 23 seconds for
GitJournal to become responsive.
2021-10-26 17:49:08 +02:00
ff46c38599 NotesFolderFS: Operate on 'File' instead of 'Note'
Also simplify the loading logic. This makes it much easier to
understand.

With this, I can now slowly migrate the interface of a NotesFolder to be
based on Files instead of Notes.
2021-10-15 15:38:12 +02:00
6a915864f2 Move NotesFolder's code to their own folder
The 'core' folder is becoming way too huge.
2021-10-15 12:31:35 +02:00