1325 Commits

Author SHA1 Message Date
610c4ea8a7 Allow the default folder for new notes to be configured
In the "All Notes" screen
2020-03-21 00:14:38 +01:00
51cc8b9881 SortedNotesFolder: Add another test 2020-03-20 23:49:04 +01:00
03ff93bfc9 SortedNotesFolder: Add another test 2020-03-20 23:47:56 +01:00
c5bcb09ec0 SortedNotesFolder: Add tests
This way it properly works. I shouldn't be coding so late in the night.
2020-03-20 16:51:16 +01:00
0c35400fc6 Bump git_bindings version 2020-03-20 00:53:18 +01:00
ea23c3be4e Bump version 2020-03-20 00:08:04 +01:00
f4c139a2b7 GitRemoteSettings: Pass the correct context
The scaffold doesn't exist in that context :(
2020-03-19 23:54:36 +01:00
5db269c826 NotesCache: Allow for json decoding errors
The file may have gotten corrupted.
2020-03-19 23:44:50 +01:00
1ff3075a1c MicroOptimization: Avoid rebuilding the regexp 2020-03-19 23:38:12 +01:00
e0ac655a2c SortedNotesFolder: Massive optimization
Use a binary search instead of sequential
2020-03-19 23:25:15 +01:00
cdd5d7aca0 For generated titles - prefer the provided title 2020-03-19 15:40:09 +01:00
2c361172c6 Avoid recreating DateFormats
They only need to be created once. This should result in a minor
performance gain while building the folder views.
2020-03-19 15:23:30 +01:00
d5484502df Ensure all ListTiles in FolderView are of the same height
It looks way neater this way.

https://github.com/flutter/flutter/issues/31134
2020-03-19 02:59:59 +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
a235048b2a Allow a note of a different 'type' to easily created
This adds a bottom bar, which hopefully doesn't make the app too
cluttered.
2020-03-19 01:46:51 +01:00
0a0e03a660 Fix reset bug 2020-03-16 19:40:08 +01:00
17d67823db Extend poc for generating ssh keys via dart
Still needs work
2020-03-16 01:22:11 +01:00
b2709f94f1 HostSetup: Allow keys to be regenerated even with a custom setup 2020-03-16 01:20:33 +01:00
4a6355d687 Setup: Fix validation of private keys
For #85
2020-03-16 01:13:27 +01:00
0901985a6f Add PoC for rsa key generation and encrypt/decryption using it
We want to stop relying on openssl in order to generate the keys. Using a
c library for this complicates the entire build process, and makes
everything so so much more complicated.
2020-03-15 18:45:11 +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
893fa3f90f Undo Snackbar: Remove the previous one before showing the new one 2020-03-15 01:03:55 +01:00
4a9e2f59d0 MdYamlDocLoader: Avoid starting the isolate multiple times
Man, there is a lot of locking that I hadn't even thought of while
writing all of this code.
2020-03-15 00:27:12 +01:00
d8464ff64f MdYamlDocLoader: Load the docs in another isolate
This will hopefully make opening the app a bit better as the yaml
parsing is now in another thread and frames would no longer be skipped.
2020-03-15 00:12:36 +01:00
b0cc615aae Move MdYamlDoc loading to its own class 2020-03-14 23:33:04 +01:00
d87d873962 Move to Apache to an AGPL license 2020-03-14 23:33:04 +01:00
b78acb73ff Allow the JournalEditor to be made the default 2020-03-14 23:33:00 +01:00
97cea0d8f9 CardView: Make it a bit prettier
It still has a long way to go to being usable. But I rather have in
integrated so I can slowly keep improving it, and for some users to try
it out. It is clearly marked as experimental.
2020-03-12 14:38:26 +01:00
e352f1f9c9 CardView: Render checklists better 2020-03-12 14:33:38 +01:00
00f3edbedf CardView: Remove extra new lines 2020-03-12 14:31:43 +01:00
063d0fda3a CardView: Show the title 2020-03-12 14:30:21 +01:00
f4dd4fd148 Add experimental card view
This notes are displayed as cards. This is meant to emulate a more
google keep style.
2020-03-12 14:23:15 +01:00
48f4d52c40 AppDrawer: Change header to "All Notes" 2020-03-12 01:40:55 +01:00
494d866686 Make the home screen show all the notes
It can show call the notes recursively, instead of showing just the root
folder. This makes it much easier to access a note recently modified.
2020-03-12 01:35:48 +01:00
93269f339b Fix changing the sorting mode 2020-03-12 00:18:31 +01:00
59658db045 StandardView: Show the date time based on the sorting mode
Just like in the journal view.
2020-03-12 00:13:42 +01:00
1df374df90 Bump version 2020-03-11 15:00:12 +01:00
65e3b2a9f4 Settings: Save folderViewHeaderType 2020-03-11 14:58:31 +01:00
645131b936 Settings: Save showNoteSummary 2020-03-11 14:53:15 +01:00
7aea2611bf Allow the StandardFolderView to be customized
The customization screen is very ugly and this entire thing feels
extremely hacky with the abstractions leaking out everywhere. However,
it does work.

I'll clean it up another day.
2020-03-11 14:48:32 +01:00
d2b6b0eb08 Remove the Compact View
I need to merge it into the StandardView. The more I think about it, the
more this view doesn't make sense. Specially since I need to add the
same extra configuration options in both views.
2020-03-11 13:19:50 +01:00
627427a881 NotesFolder: Listen to the proper Note's signal 2020-03-11 13:07:45 +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
1e21f487b8 Save default folder view on change 2020-03-08 20:51:15 +01:00
c2c617753d Enable auto-correct
This actually makes a difference on iOS.
2020-03-08 20:37:47 +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
9a65686f1e NotesFolder: Add more debug information when loading
This will help better diagnose why files don't sometimes show up
2020-03-08 00:42:19 +01:00
09ff8b2704 Fix sorting mode
First sort based on datetime, and then based on filename.
2020-03-08 00:41:20 +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
d7265ec69b FolderViews: Never let a Row have a null widget
Otherwise we get an exception. This happens when a note has not loaded
and we're trying to render it. Ideally we should handle those cases with
some kind of animation instead of the current approach.
2020-03-06 19:25:00 +01:00