51b95bb7e0
SortedNotesFolder: Ignore sorting order for unloaded notes
2020-03-01 14:52:27 +01:00
c90189e55b
Note: Do not try to generate the summary if not loaded
2020-03-01 14:28:10 +01:00
b5f7a24b1f
Use filename comparison when both Notes don't have modified/created
2020-03-01 14:19:26 +01:00
b199e4ef74
Simplify the sorting the presentation
...
Now we don't try to be smart and guess the sorting.
The problem was what to do when we don't have the modified/created
value. In those cases we were trying to use the fileLastModifed, but
that could get quite tricky and it wasn't obvious to the user what was
going on.
From now on - if it doesn't have a modified field, it just goes to the
end.
2020-03-01 14:17:06 +01:00
ec11f09b2e
More thorough checking for if a Note has been modified
2020-03-01 14:08:04 +01:00
3ed246310e
Centralize sorting code
2020-03-01 13:50:39 +01:00
7bdcd5dd82
Moving SortingMode into its own file
2020-03-01 13:42:09 +01:00
d50f772468
Only have one SortingMode class
...
It doesn't make sense to duplicate it.
2020-03-01 13:40:16 +01:00
6d69217cae
JournalList: Show the filename as the title when no metadata is allowed
...
Fixes #72
2020-03-01 13:14:13 +01:00
78d7e6cef0
Integrate the NotesCache
...
It doesn't make any difference as -
1. The sort order shown our SortedNotesFolder is different
2. Rebuilds of the tree affect everything. Even the elements which
should be in the correct place.
2020-02-28 14:55:52 +01:00
2de1d17ee1
SortedNotesFolder: if created/modified not present it goes in the end
2020-02-28 14:55:11 +01:00
215dfc2cec
NotesCache: Add a simple way to build the cache
2020-02-28 14:29:07 +01:00
cbacfa31e3
First attempt of creating a NotesCache
...
This is just for optimizing the loading of the Notes in the correct
order. I want to avoid the notes appearing and disappearing in a strange
order when loading. It gives a bad first impression.
This cache isn't integrated, it's only half done.
2020-02-28 14:17:37 +01:00
020c65e132
Minor cleanup
2020-02-28 14:16:05 +01:00
e65fbdbc71
Add experimental Journal Editor
...
It removes the title and displays the journal header. This provides a
much better experience for writing a journal.
2020-02-28 12:47:53 +01:00
e1a06a439c
NoteViewer: Simplify code
2020-02-28 12:42:37 +01:00
dae3d1aec9
Remove the FAB
...
Fixes #58
I've tried adding a black space under the FAB, but that just reduces the
available vertical space while typing. This does reduce the usability
for small notes, as clicking on the FAB is much easier than clicking on
top-right back button or clicking the back button twice on Android.
2020-02-28 12:34:56 +01:00
a49876e3ee
Remove the title editor if it cannot be stored
...
It just makes it confusing for the user otherwise.
2020-02-19 23:00:52 +01:00
d5176041be
Fix flutter analyze
2020-02-19 22:48:04 +01:00
0fdc38b9da
Bump version
2020-02-19 18:19:58 +01:00
6c7606efd3
KeyEditor: Do not let Next work until valid values are provided
2020-02-19 18:17:08 +01:00
12e16f83e5
KeyEditors: Remove code duplication
2020-02-19 18:06:59 +01:00
844089917a
KeyEditors: Add basic validation
2020-02-19 18:02:53 +01:00
0813429bb8
ChecklistEditor: Support autofocus for new notes
2020-02-19 17:04:53 +01:00
f6c64507c4
ChecklistEditor: Do not manually destroy the focus nodes
...
The focus node will dispose themselves
2020-02-19 17:04:17 +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
27ebd9686b
RawEditor: Give focus when using it for a new note
2020-02-18 16:31:34 +01:00
59d379ab62
Allow the default editor to be configured
...
This doesn't solve #41 , but it does provide a good workaround.
2020-02-18 16:26:12 +01:00
77a70a3336
Remove old snackbar before adding another one
2020-02-18 14:38:37 +01:00
69fbd20040
HostSetup: Allow custom keys to be provided
...
Fixes #26
2020-02-17 18:02:57 +01:00
98fb1ccff5
Move git host setup files to setup folder
2020-02-17 16:51:52 +01:00
7c8cbdabaa
JournalList: Use fileLastModified when no modified/created available
2020-02-17 16:44:37 +01:00
0d5793d097
strip_markdown: Use a handbuilt stripper
...
It's not perfect, but it runs faster at about 35 us vs 650 us.
2020-02-17 15:51:37 +01:00
17fd25cac9
Add strip markdown benchmark
2020-02-17 15:51:14 +01:00
9f2fa7c3e4
Search: All look in the title
...
Fixes #64
2020-02-17 14:58:28 +01:00
b4d718b131
ChecklistEditor: Allow removing the last element
...
We were throwing an exception as there wasn't anything to give focus to.
2020-02-17 01:36:07 +01:00
fa6135d022
Themes: Color the textSelectionHandle properly
2020-02-17 01:33:42 +01:00
b5b8639edd
ChecklistEditor: Implement proper focus handling
...
Now the checklist editor is finally usable.
2020-02-17 01:33:38 +01:00
4f5c44812f
checklists: Do not add unnecessary \n
2020-02-17 01:05:35 +01:00
27875eba0c
ChecklistTest: Add missing await
2020-02-17 00:50:06 +01:00
d2be24a191
HostSetup CloneUrl: Change text size
...
This way one can comfortably add the entire git url.
2020-02-16 23:58:53 +01:00
adc1039521
Bump version
2020-02-16 23:02:05 +01:00
e5a6236cfc
Checklists: Ensure there is one item at the start
2020-02-16 22:57:58 +01:00
e378ed5758
ChecklistEditor: Reduce spacing between checkbox and text
...
It looks a bit prettier now
2020-02-16 22:11:26 +01:00
5569c3fca1
Checklist: last may not exist
2020-02-16 22:11:11 +01:00
2aba80cb75
GitHostSetup: Use git_url_parse2 to try to verify the url
...
This way if the url is invalid we will know before trying to clone,
which happens much later during the process.
2020-02-16 20:01:59 +01:00
e658b69039
ChecklistEditor: Remove extra padding between editor and title
2020-02-15 03:10:45 +01:00
9fc9e9f69d
ChecklistEditor: Give checked entries a disabled color
2020-02-15 03:00:32 +01:00
47819ddb4e
ChecklistEditor: Update todos
2020-02-15 02:31:11 +01:00
8cabb07483
checklist: verify insertItem works
2020-02-15 02:30:00 +01:00