1013 Commits

Author SHA1 Message Date
5682e8abf9 ios: Flip ITSAppUsesNonExemptEncryption 2020-03-05 00:49:21 +01:00
7aee2e34bc Make sure note modifications are stored
Also bump the version. This is a very important bug fix.
2020-03-03 14:45:56 +01:00
0fc40da55b JournalEditor: Avoid crashing if note has no creation date
In the future when we improve the git itegration that will never happen,
but for now, it's what we have.
2020-03-02 19:57:26 +01:00
3640176f8d Remove Android debuggable
Fails to build with it
2020-03-02 18:12:23 +01:00
c07c076a67 Bump version 2020-03-02 17:41:07 +01:00
3bbf8e3abc Android: Always mark it as debuggable
I see no downside of shipping it this way, and since this app is
currently targetted more towards developers, they can provide better bug
reports.
2020-03-02 17:38:29 +01:00
c65ec96da2 Fix bug when you have less than 10 notes
Fixes #73
2020-03-02 17:37:47 +01:00
de2553c31f Mark new notes as Loaded 2020-03-01 17:14:01 +01:00
5ec3af70a6 More comprehensive setup analytics 2020-03-01 15:28:56 +01:00
a0e3e50b4a HostSetup: Track if using GitHub/GitLab/other 2020-03-01 15:21:30 +01:00
44d916138d Bump version 2020-03-01 14:55:40 +01:00
31262e5f7d Add some debug messages 2020-03-01 14:53:11 +01:00
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