968 Commits

Author SHA1 Message Date
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
7221befcc1 Checklist: Make sure \n exists before adding a new checklist item 2020-02-15 02:28:49 +01:00
b9c7fed6dc Add emjoi support
Only supported for the body and title of notes.

Fixes #62
2020-02-15 02:06:48 +01:00
ffc7c8f483 Fix flutter analyze 2020-02-14 11:34:33 +01:00
80cf1613a0 DarkTheme: Change checklist selected color
The default one is not very readable.
2020-02-14 08:32:34 +01:00
a98df20c77 Revert "NotesFolder: Add a notification for when a note changes"
This reverts commit f583d181c6c21f2e332a2468b19de47bca72b848.

This causes way too many rebuilds.
2020-02-14 08:26:51 +01:00
6a527893f5 ChecklistEditor: Strike-through text of completed items 2020-02-14 08:26:29 +01:00
46a38cdedf Rename NoteData -> MdYamlDoc
It more clearly defines what exactly it is.

This is important as its less confusing for when we add support for
other file types.
2020-02-14 08:12:41 +01:00
39cc1bc0ce NotesFolder: sort the sub-folders
This really isn't a good way of doing this as now the folder
inserted/removed notifications will not be correct. But at least the
folders will be sorted.
2020-02-14 07:56:53 +01:00
f583d181c6 NotesFolder: Add a notification for when a note changes
This way we can re-order the list when one of the notes changes a
specific property.
2020-02-14 07:41:49 +01:00
fe7fd4b550 ChecklistEditor: Reserve space for the close button
Otherwise when the text is long after moving, the text is rearranged
which causes the entire list to move.
2020-02-13 17:19:12 +01:00
527dca5eb9 ChecklistEditor: Let the text expand into multiple lines 2020-02-13 17:19:12 +01:00
7df3e9dce0 ChecklistEditor: Allow adding an item by pressing enter 2020-02-13 17:19:12 +01:00
d128fe61a8 MarkdownEditor: preview - Show the title even if it is empty
This way jumping between preview and editing isn't jarring as the text
doesn't need to move at all.
2020-02-13 17:19:12 +01:00
fa21f6433b Typo in settings_git_remote.dart 2020-02-12 19:01:46 +01:00
5d1e24edd4 Bump yaml_serializer 2020-02-12 00:26:05 +01:00
82b4223eb1 Checklist Editor: Swap close icon for clear 2020-02-11 23:56:38 +01:00
8c2db13111 Bump yaml_serializer
This should now properly fix #60
2020-02-11 23:46:40 +01:00
cc6014f148 Revert "Bump yaml_serializer"
This reverts commit 0a80e633aa70b6702c6b2d47423457abfca846fb.

I'm an idiot. This obviously breaks the datetime values.
2020-02-11 22:31:29 +01:00
a9e285537b Checklist Editor: Add some FIXMEs 2020-02-11 22:01:42 +01:00
660874f6af Simplify sorting logic 2020-02-11 22:01:34 +01:00
0a80e633aa Bump yaml_serializer
Fixes #60
2020-02-11 21:39:50 +01:00
ddb4a08e4f Bump version 2020-02-11 20:00:35 +01:00
12122be7fe AppState.notesFolder: Avoid changing the object
We're accessing appState.notesFolder directly in the parent. Ideally it
would be nice if we passed it down via the Provider, but that doesn't
seem to be working for me. I've spent over 30 minutes. I now give up.
2020-02-11 19:57:57 +01:00
3a3ec76529 StateContainer: Use Provider
This way we can avoid listening for changes in many places.
2020-02-11 19:10:34 +01:00
d5f5b4975a Note Summary: Avoid reparsing the markdown on each build
Save it after it is done once. This should result in a significant
performance boost - over 22% while showing the list view. Also, now with
the addition of a few more animations, this is even more important.
2020-02-11 19:08:33 +01:00
6627f9c38a ChecklistEditor: Try to give focus on the next item on removing
This doesn't seem to work reliably - it only kind-of gives the focus. I
see the 'x' on the right, but the keyboard has not been shown. Maybe
this is just an ios emulator issue.
2020-02-11 18:08:34 +01:00
e9742b249c Checklist Editor: Give focus to newly added item after clickin on add 2020-02-11 17:48:28 +01:00
743958e4b3 Checklist Editor: Allow clicking on "Add Item" text
in order to add another item.
2020-02-11 17:28:27 +01:00
709ad4ccb8 Do not run tests in parallel
They occasionally fail if we run them in parallel - not sure why.
2020-02-11 17:22:15 +01:00
c7981606bf Checklist: Do not add extra \n while parsing
Now the checklist editor is finally somewhat usable.
2020-02-11 17:21:32 +01:00
380434368d Checklist Test: Remove modified field
When running it on the CI, the timezone is not the same and this causes
some problems.
2020-02-10 18:21:33 +01:00
4c23c28671 checklist: Improve test 2020-02-10 17:27:14 +01:00
fe7d370233 Checklist: Replace reorder icon
It's still not the icon we want, but it's the closest there is.
2020-02-10 17:11:56 +01:00