c6665fa63e
Simplify Settings/Config classes
2021-07-29 12:45:33 +02:00
c66eaf1052
NotesFolderConfig: Read directly from the SharedPref
...
It's super annoying that we have this class which reading from the
settings, so adding any new value involves updating some 12 new things.
2021-07-27 16:33:16 +02:00
d6e2f09a72
Move all settings code to its own folder
...
Jumping around between the widgets / screens and outside is bit
confusing. Also this way, I can add the stories right here.
2021-06-05 12:23:28 +02:00
96c2809d3e
Migrate most of the tests to null safety
2021-05-19 12:09:45 +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
b7e274c937
Add FileName option in Note title settings
...
This doesn't do anything right now. It just shows the option.
2021-02-12 15:32:10 +01:00
5280917e7a
Minor refactor
2021-02-09 12:00:52 +01:00
f75e119995
Make Settings take the folderName as a parameter
2020-10-23 02:29:48 +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
2668d14510
Replace test with simpler test
...
Also lets not auto convert old notes title format.
2020-08-19 11:40:50 +02:00
8f2bb557da
YAML tags: Let it be a string seperated by spaces and have a #
...
In general we try to follow the same format as specified in the input
note.
2020-08-19 10:41:52 +02:00
9380f3cc06
Allow YAML tags to be a string
2020-08-19 10:12:07 +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
cd9ae57a71
Fix tests
2020-08-10 09:59:20 +02:00
9c01b8a931
NoteSerializer: Avoid using Settings.instance
2020-08-09 01:50:52 +02:00
4a97d03bd8
Title Codec: Support empty starting lines in the body
2020-07-29 15:25:17 +02:00
417f0414f2
Setting: Note metadata change subtitle
2020-07-29 15:13:37 +02:00
41447027f2
Allow 'title' saving to be configured
...
We now allow it be to either saved as the H1 or in the YAML metadata.
I'm not sure what the default should be. Still deciding.
Fixes #112
2020-07-28 17:26:42 +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
b9c7fed6dc
Add emjoi support
...
Only supported for the body and title of notes.
Fixes #62
2020-02-15 02:06:48 +01:00