873 Commits

Author SHA1 Message Date
8761f96bbe UndoSnackBar: Stop using Fimber
It makes everything far more complicated, but at least this way the FAB
moves along with the scaffold. With Fimber, that is not the case, and it
is very annoying.
2020-01-31 17:41:05 +01:00
f9a2f4c875 Add some FIXMEs 2020-01-31 16:17:30 +01:00
95dce61479 Allow the new folder for notes to be configurable
This is currently disabled as it requires a substantial change in the
JournalList.
2020-01-31 16:16:12 +01:00
51e42780d6 Split NoteSearchDelegate into its own file 2020-01-31 16:12:55 +01:00
23c6192162 Editor: Add 'Discard Changes' button
It got removed while merging the editor/viewer
2020-01-31 15:55:25 +01:00
bded32b027 TodoEditor: Add a 'Add Item' button at the bottom 2020-01-30 19:28:16 +01:00
698e741851 TodoEditor: Only show remove buttons when that item has focus
Looks less cluttered.
2020-01-30 19:26:58 +01:00
a11d535078 TodoEditor: Allow removing todo items 2020-01-30 19:08:07 +01:00
27b630888c TodoEditor: Allow items to be rearranged when dragging 2020-01-30 19:01:41 +01:00
a2b3c8d9e6 Add const 2020-01-30 18:41:51 +01:00
7c2cde03b7 Add the first draft of a TodoEditor
It's a small proof of concept and still needs a lot of work.
2020-01-30 18:41:27 +01:00
ddb7303fea Reduce code duplication between Editors
It also makes it so much easier to implement a new editor.
2020-01-30 17:42:29 +01:00
841e2808db Bump version 2020-01-29 17:20:59 +01:00
ac7881ebeb Remove unused scripts 2020-01-29 17:09:01 +01:00
56fa627de7 moveNote: Do nothing if dest is the current folder 2020-01-29 17:05:21 +01:00
9e520e7e95 FolderSelectionDialog: Make it prettier
We don't need it to have such large icons.
2020-01-29 17:04:18 +01:00
43281bd2bb Add support for moving a Note to another folder
The Folder selection dialog needs a lot of work, but it's a start.
2020-01-29 16:51:57 +01:00
d48461a4cc Revert "android: Remove keeping the screen on in debug mode"
This reverts commit 333b11de7d4e67b0abd7269989609fe58c73c7ab.

We still have the "keep device from sleeping" permission. It seems we
will need to manually remove that permission. I rather have that
permission and have this super useful tool of keeping the screen on when
developing.
2020-01-29 15:30:08 +01:00
7e5c2ba4a3 MarkdownEditor: Open by default in edit mode
This way most notes can immediately be edited without clicking twice -
once to switch editors and once to focus.

In the future, we should preserve the state of the editor from the last
time so that people don't need to continously switch between notes.
2020-01-29 00:04:28 +01:00
db5d2c51e7 RawEditor: Add a FAB 2020-01-29 00:04:28 +01:00
047aac3553 MarkdownEditor: Show a FAB with a checkmark
Instead of a FAB to switch modes.
2020-01-29 00:04:28 +01:00
3f40a2992a Add the concept of Editors
* We no longer have a separate editing and browsing view - This does
mean we loose the ability to quick flip between notes by swiping.
However, this is more how a note editor would behave. I do later want to
add that capability back.

* We have 2 editors for now - Markdown and Raw. By default we use the
Markdown editor which can be toggled between Preview / Edit mode.

I later want to add a rich text editor and a todo editor as well.
2020-01-29 00:04:24 +01:00
127faa39cf JournalEditor: Allow the markdown to be previewed
This is the first implementation of trying to combine the viewer and
editor. It isn't perfect and doesn't work well with the raw editor.
2020-01-28 16:23:00 +01:00
6d38377144 Split NoteViewer into its own file 2020-01-28 16:02:54 +01:00
9912f598df Using the same font when editing and viewing the note
Otherwise the transition seems a bit off. Also, we will soon be
combining both the editor and viewer, so it makes sense for them to look
identical.
2020-01-28 15:57:40 +01:00
58f7de3c81 Bump git_bindings again 2020-01-28 15:57:05 +01:00
5d0054fd7e Remove FontSize configuration
Ever since we had a proper markdown renderer, this option has been
broken as it only scales the body text and not the headers, and other
text in code-blocks. Additionally it only modifies the viewing text size
and not the editing text size. Fixing this feature is way too much work,
and barely any users are using this feature.

Maybe we will introduce it again in the future.
2020-01-28 15:56:59 +01:00
88e49dbf76 Bump git_bindings version
This includes automatic merge conflict resolution. It isn't very smart -
it just chooses the local changes, but at least this way we never reach
an inconsistent state.

Fixes #51
2020-01-28 15:17:59 +01:00
71e669cd81 Bump version 2020-01-28 00:01:50 +01:00
e61e407739 Theme: Overwrite the cursor color
This blue cursor color just doesn't go with the rest of the theme.
2020-01-27 23:57:53 +01:00
177a7c3d74 DarkMode: Improve markdown code blocks color
Flutter_markdown has hardcoded certain grey colors. This doesn't go well
with a dark theme. For now we're overwriting it.
2020-01-27 23:50:39 +01:00
645892a7dc NoteMetadata Settings: Fix colors for dark mode 2020-01-27 23:33:21 +01:00
ec959ebbed Add a helper file to resolve merge conflicts
I'm not sure how to integrate this into our merging code.
2020-01-27 23:28:13 +01:00
150543e065 RenameDialog: Do not accept a name that already exists 2020-01-27 23:27:45 +01:00
8c5720c34b Note Rename: Do not let it be renamed to a non markdown file
Otherwise it disappears from the listing as we only show files which end
with a '.md'.
2020-01-27 23:11:42 +01:00
f8e7773f16 NoteBrowser: Add a button to rename notes
Fixes #23
2020-01-27 23:09:11 +01:00
35f8559c74 Move RenameDialog to its own file
Also make it a bit more generic
2020-01-27 23:08:33 +01:00
93775ddca5 Ignore more git connection errors 2020-01-27 19:07:05 +01:00
06d1124c19 Sync: Retry if the remote has changed
This can happen if someone pushed between our pull and push. In this
case lets just try again.
2020-01-27 19:03:30 +01:00
a759ad4a23 Combine showSnackbar code
It's annoying to always have to remember to call it. We had forgotten in
one place and that resulted in a lot of noise.
2020-01-27 19:02:44 +01:00
bd0819c5be Settings: Disable the Git Remote Settings when no remote present 2020-01-27 19:01:47 +01:00
6e2a905f05 Cleanup ignored exceptions 2020-01-27 18:47:17 +01:00
21db481158 Bump version 2020-01-27 18:09:31 +01:00
fe1db3da90 Add accidentally deleted UriReceiever 2020-01-27 18:08:40 +01:00
8ba92f69bc Bump version 2020-01-26 03:01:39 +01:00
0da1a0783c analysis: Use curly_braces_in_flow_control_structures
One step closer to using dart:pedantic
2020-01-26 03:01:39 +01:00
44781733f8 Bump git_bindings 2020-01-25 14:36:04 +01:00
8587611b77 android: Fix bug where note contents disappear if app is switched
Workaround for bug https://github.com/flutter/flutter/issues/47628
2020-01-25 14:35:37 +01:00
e3e4fa0836 Update changelog 2020-01-25 13:56:47 +01:00
333b11de7d android: Remove keeping the screen on in debug mode 2020-01-25 13:56:47 +01:00