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
d2d9504dc9
Make sure all notes end with a \n
...
Fixes #383
2021-03-26 10:09:15 +01:00
ebd225c3b5
Fix linter + auto format
2021-03-25 16:32:24 +01:00
93cf6433d6
OrgEditor
2021-03-25 12:10:04 +01:00
eb6aff7b76
Note: minor cleanup
2021-03-18 14:29:29 +01:00
171126aa87
initial support for .org files
2021-03-15 10:54:32 +01:00
efd480cfcf
Relicense some files to Apache2
...
There is a pull-request with some changes
2021-03-15 10:25:49 +01:00
13f060e6e1
Add Date Only FileName option
...
Fixes #346
2021-02-06 20:54:45 +01:00
bc06efc446
Create new note when clicking on non existing Wiki Link
...
Fixes #240
2020-10-22 23:57:53 +02:00
044592b92d
Allow Journal Entries to have their own file naming scheme
...
Adding an individual setting is becoming way too complex now.
2020-10-12 18:21:26 +02:00
9499cea164
Remove Settings global
...
Stop it being a singleton. This means it needs to be passed around a
lot. This sucks, but it's how it should be. I shouldn't be using a
global variable to get around this.
This is needed as Settings will soon become repo specific when we
support multiple repos.
This breaks saving the settings in a file, that feature was toggled off
anyway. It needs to be thought over again.
2020-10-09 00:59:19 +02:00
82db15128b
NoteFileFormat: Refactor
...
Get all the allowed extensions in one place. Currently the code is
scattered all over the place.
2020-09-26 19:19:26 +02:00
b72e4719d2
Remove another case of the Settings singleton
2020-09-25 01:05:17 +02:00
c94ff85804
Overhaul Link parsing
...
We were mixing up header links with wiki links and the alt text. It was
a bit messy. We currently do not support linking to a particular part of
a note. Nor do we support wiki links as link references.
Fixes APP-A0
2020-09-14 12:20:15 +02:00
fa075c25e0
FolderView: Implement selecting a note
...
This is disabled for now, untill I expose the actions which should be
performed when selecting a note.
2020-09-05 15:53:26 +02:00
d3d04e6df9
NoteLoader: Handle the exceptions while trying to load the file
...
They were being silently dropped.
2020-09-03 13:48:57 +02:00
6e289a6b6e
Note: Add an API to get the images from a note
...
This will be used in the future to display the images in the grid/card
view.
2020-09-03 12:26:45 +02:00
074e918db4
Implement basic inline tags
...
Fixes #44
2020-09-02 17:24:34 +02:00
a3f556df47
Actually implement the Zettelkasten filename format
...
I like an idiot only exposed it in the Settings.
2020-08-30 15:16:03 +02:00
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