23 Commits

Author SHA1 Message Date
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
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
7e0a77ace3 Fix many cases of 'avoid-ignoring-return-values'
Now that dart-code-metrics has been updated, this lint can finally be
used. So far all of these are false positives, in the sense that I don't
care about their return values.

I wish there was an easy way of marking functions whose return value
shouldn't ever be ignored.
2021-09-27 18:39:18 +02:00
c4ef1f569b Use flutter_lint
Instead of picking lint values. This way I don't need to routinely
looking at extra lints to enable.
2021-09-21 15:42:13 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
d3fab6fb7c Fix LinksView
Stupid box / dart limitation
2021-09-06 17:33:43 +02:00
665d1dce2b Add a Materialized View for the Links
Calculating the links is very expensive, this way we finally don't need
to do it each time!
2021-09-06 16:57:30 +02:00
9acf3d15f6 null safety++ 2021-06-02 09:40:53 +02:00
3b5ff6c9df Core: Finish null safety migration 2021-05-25 09:54:19 +02:00
d008f0d982 First version of dart migrate
Most of the files haven't been migrated. Lets work on this bit by bit
2021-04-10 22:18:35 +02:00
5571fdb65e Use time.dart
I'm sacrificing const code for readability. So maybe I'll lose a bit of
performance, but this is so much easier to read.
2020-11-10 19:07:09 +01:00
88dd449ac6 Graph: Avoid calling a method on null
Fixes APP-DX
2020-10-18 10:06:03 +02:00
48b9b4d642 GraphView: Dispose the Graph correctly 2020-09-28 00:48:18 +02:00
b34395f754 Graph: Do not let nodes get stuck
Nodes which have a pos < 0, are no longer force directed. This make the
graph behave strangely. It's better to just push it a little further
from the edge.
2020-09-26 06:03:14 +02:00
475fbcbc00 Graph: Start drawing the nodes closer to the top left
Instead of drawing them somewhere in the middle.
2020-09-26 05:39:26 +02:00
6ede96a8ab Graph: Remove all debug print statements
Too much noise. I'll remove them later when I cleanup the code.
2020-09-26 05:37:14 +02:00
8e5ac69af2 Graph Layouting: Add original const values
These seem like magic values to me.
2020-09-26 01:17:35 +02:00
e616d69773 Graph Layout: Do not let nodes pos go < 0
Otherwise they fall off the visible area
2020-09-26 01:13:37 +02:00
42b7562989 GraphView: Properly cache the neighbours
Stupid mistake
2020-09-26 01:03:45 +02:00
70a48f6d2f Graph: Remove unused function
We never assign nodes randomly starting positions any more.
2020-09-26 00:48:46 +02:00
34630c671e Node: cache the label
Computing the path spec again and again is apparently very very
expensive.
2020-09-26 00:36:58 +02:00
719d6842c3 GraphView: Move initial node positioning logic to its own class
Right now we're just placing it in a grid, but we could also place them
in a circle as is done by Obsidian.
2020-09-14 17:57:38 +02:00
f7adeafe7d First iteration of the Graph View
I'm testing this with the Foam documentation. This has revealed a number
of bugs in our link resolver - most of which have now been fixed.

The graph layouting is not being done as this is so incredibly slow.

This has been added as an experimental feature.
2020-09-14 17:47:26 +02:00