6be1c22496
Remove extra _notifyModified
2020-08-19 10:02:03 +02:00
9859aa6106
Allow custom metadata to be specifiec for any note
...
This way we can add 'draft: true' to all new notes.
Fixes #168
2020-08-18 10:47:26 +02:00
7b1e328c7e
Note: Always flush the file when writing
...
This may fix some edge cases where the notes aren't being saved.
2020-08-10 23:49:13 +02:00
9c01b8a931
NoteSerializer: Avoid using Settings.instance
2020-08-09 01:50:52 +02:00
633d9f5744
Remove more instances of Settings.instance
...
Use the Provider
2020-08-09 01:50:36 +02:00
9374c35901
Note's title is no longer part of the metadata
...
So even if the YAML metadata is disabled, the title can be set.
2020-07-29 16:05:21 +02:00
9ca19077e7
Remove invalid assert
...
Not sure why I put this assert, it doesn't seem to make sense.
2020-07-27 10:03:25 +02:00
9d00fdac06
Use import_sorter
...
flutter pub run import_sorter:main --no-comments
The code feels much cleaner
2020-07-24 12:43:28 +02:00
b14e094e59
Copy Note to clipboard when it cannot be saved
...
Also avoid showing the actual exception. It's not very useful to the
user, and we're logging the exception to Sentry anyway.
Related to #124
2020-07-13 17:27:39 +02:00
fb9b69bb46
TagsFolder: Auto add relevant tag to new notes
2020-07-09 18:03:06 +02:00
309917d165
Move links parsing from the markdown string to another thread
...
This can be very expensive and the UI hands for a large number of notes,
otherwise.
2020-07-09 11:09:03 +02:00
ad535f3be7
Note Links: Considering anything which doesn't have a '://' as local
...
Only local notes are shown in the backlinks. Earlier our idea of local
links was notes which start with './', but now since we accept the
direct filename as well, we should support that in the backlinks as
well.
2020-07-08 00:49:45 +02:00
5e557ef6c3
Rename MetaLinkSyntax to WikiLinkSyntax
2020-06-12 13:50:54 +02:00
ae74e02fa7
Rename Note: Ensure markdown files end with .md
...
This broke when supporting txt files
2020-06-10 15:16:14 +02:00
9ba0bc831c
Catch possible exceptions when creating the fileName
...
This can apparently happen, and we should have a fallback. Additionally
Dart has both an 'Error' and an 'Exception' which are two different
things. This makes no sense.
2020-06-09 18:09:17 +02:00
67c2777d9b
Parse links in wiki syntax [[term]]
...
This way we can use this faster syntax which is also supported by
Obsidian.
2020-06-08 00:52:03 +02:00
702366671a
Move Link to its own file
2020-06-08 00:35:55 +02:00
e6be9aa228
Ensure new notes always have a proper file ending
2020-06-06 12:31:24 +02:00
2dbc2dda77
Add support for filenames based on Uuid
2020-06-04 02:12:13 +02:00
42d6386096
Add basic txt file support
...
With this 'txt' files are now read and written. However, they don't have
any metadata so they don't show up correctly in the sort order and
currently the Markdown Editor is still available for them.
Related to #55
2020-06-02 00:15:18 +02:00
18c93fbbb4
Note: Do not change the body if it hasn't been modified
...
I'm scared that for very large notes this won't be very fast, on the
other hand changing the body results in many other fields being
re-computed.
2020-05-26 18:07:24 +02:00
d3fb2b7119
Try to make the backlinks section prettier
...
I'm not totally convinced that it should be here.
2020-05-26 18:05:50 +02:00
4eeff093c1
Cache the Links in a note
...
This requires the markdown to be parsed which can be an incredibly slow
operation, so lets avoid re-doing it unless necessary.
2020-05-26 17:08:03 +02:00
96ed70f023
Show the backlinks of a Note
...
This is the initial proof of concept and doesn't look very pretty. It's
also not very efficient.
Related to #141
2020-05-26 15:37:09 +02:00
af69dd6e48
Note: Allow returning the links in the document
...
This isn't perfect as we aren't handling referenced links and maybe even
autolinks, but it's a start.
Related to #141
2020-05-26 14:50:23 +02:00
4c56ddc4df
Allow the default Image location to be configured
...
Fixes #10
2020-05-20 00:32:13 +02:00
f4ad226341
NoteFileName Format: Move it to Folder Settings
...
This way each folder can have its own default file naming scheme.
2020-05-18 00:13:20 +02:00
89deac3770
Note toString: Print loadState
...
Makes it easier to debug
2020-05-14 16:58:45 +02:00
db37bfbf81
Note: Not all files end with a '.md'
...
This was only supposed to be done for new files
2020-05-14 16:58:16 +02:00
867f6df14c
[Android] Implement sharing images to GitJournal
...
Fixes #38
2020-05-13 18:30:33 +02:00
31e3e8c806
Ensure Note's fileName always ends with a .md
...
We were missing it in some cases :(
Fixes #135
2020-05-13 12:03:04 +02:00
2847e3f60f
Add basic tag support
...
This allows you to be modify the tags from the NoteEditor. Related to
#114 . We still need to add some way to filter the notes by tag. Also,
the current tag editor doesn't show the tags from the other notes.
2020-05-13 01:01:40 +02:00
52fd859990
Note: Make tags a set instead of a list
...
This way we don't need to check for duplicates
2020-05-12 23:33:57 +02:00
59ab66844f
Note: Allow tags to be read and serialized
...
This is just exposing the tags on the Note class. Not making it
available through any interface.
2020-05-12 22:59:45 +02:00
b17c184900
Add very basic Image support [Android only]
...
This adds a '+' button to the NoteEditor which allows you to add an
image from either the Gallery or Take a photo. It then accordingly adds
updates markdown.
The file is added in the same directory as the note for now.
Related to #10
2020-05-05 12:02:36 +02:00
21a7798dc9
Note.load: lastModified can throw an exception
...
Fixes APP-V
2020-04-16 10:12:33 +02:00
14d734bf08
Fix handling of Note renames
...
We often use the note's filePath as a unique identifier, however that
can change, and we need to update the caches accordingly.
Fixes #97
2020-04-10 13:45:19 +02:00
bb0e574495
Abstract out the logging
...
This way moving away from Fimber will be much easier.
2020-04-04 11:50:57 +02:00
a99eca9131
Simplify code by using pathSpec
2020-03-21 00:52:54 +01:00
3e38628102
Add a 'type' to each Note
...
This way we can load the appropirate editor according to the types
available.
2020-03-19 02:36:59 +01:00
b252f037b3
Rename NotesFolder -> NotesFolderFS
...
And NotesFolderReadOnly to NotesFolder. It just makes more sense this
way as we're now getting more and more different "types" of
NotesFolders.
2020-03-15 02:01:07 +01:00
b0cc615aae
Move MdYamlDoc loading to its own class
2020-03-14 23:33:04 +01:00
8b48650ad8
Note: Reload the file when it changes
...
We were comparing the file modification date incorrectly
Fixes #65
2020-03-11 12:55:07 +01:00
f0eeefe125
SortedNotesFolder: Avoid calling sort again and again
...
For long lists of notes this could get very very expensive.
2020-03-08 04:00:27 +01:00
56d8f635eb
Note class should not be sortable
...
There are various different methods of sorting an note.
2020-03-06 20:14:21 +01:00
de2553c31f
Mark new notes as Loaded
2020-03-01 17:14:01 +01:00
c90189e55b
Note: Do not try to generate the summary if not loaded
2020-03-01 14:28:10 +01:00
d50f772468
Only have one SortingMode class
...
It doesn't make sense to duplicate it.
2020-03-01 13:40:16 +01:00
020c65e132
Minor cleanup
2020-02-28 14:16:05 +01:00
d137fb83cf
Add experimental support for not saving the yaml header
...
Fixes #19
This is experimental as it changes the whole concept of a Note - We have
till now always assumed that a Note can have attached metadata. With
this, there is no longer any metadata. So other parts of the application
need to start reacting accordingly. For example the Mardkown Editor
should not allow you to modify the title.
This also makes it easier to implement '.txt' file support.
2020-02-18 22:29:16 +01:00