1451 Commits

Author SHA1 Message Date
01006ddaa1 NoteBacklinks: Do not show pro overlay if no backlinks present 2020-06-10 16:24:22 +02:00
4fc7c18e98 Let the rendered markdown be selectable 2020-06-10 16:09:16 +02:00
45562a5d8d Bump Flutter markdown 2020-06-10 15:59:55 +02:00
e71ff5d2c0 Make NoteBacklinks a pro feature 2020-06-10 15:49:47 +02:00
b33a66a5fc BackLinks: Render the [[term]] in bold 2020-06-10 15:46:16 +02:00
3794bf8ac0 Backlinks: Add support for [[link]] type links 2020-06-10 15:19:07 +02:00
1cebc69759 Backlinks: Make the entire part tappable 2020-06-10 15:18:38 +02:00
c98d01415f NoteRename: Do it before trying to get the lock
Another operation coule be blocking git.
2020-06-10 15:16:22 +02:00
ae74e02fa7 Rename Note: Ensure markdown files end with .md
This broke when supporting txt files
2020-06-10 15:16:14 +02:00
2502f4a79d Update ios podfile 2020-06-10 14:50:18 +02:00
06b9f27b1c Update changelog 2020-06-10 14:50:09 +02:00
695b0eaae0 Fix typo SO -> OS 2020-06-10 14:50:01 +02:00
8811f08b0e Debug screen: Cache the logs
Avoiding opening the file again and again
2020-06-10 13:34:36 +02:00
b3014d4186 Log GitPush/Pull fails as errors
Instead of debug
2020-06-10 13:28:35 +02:00
97812e1501 Convert more prints to logs
This way they will show up in the LogViewer
2020-06-10 13:25:22 +02:00
5714642e15 NoteEditing: Make sure we report exceptions on save
We don't want to silently ignore these.
2020-06-10 13:18:48 +02:00
8a00fd1df6 ErrorReporting: Log the exceptions
Not only to Sentry, also to the log, so it appears when we look at the
logs.
2020-06-10 13:18:12 +02:00
51ececd150 Immediately save the note when changing
Earlier we would wait till we got the 'mutex' to make a change, however
with the way libgit2 works, during a git push/pull other git operations
such as add/rm/commit block.

So performing a save, while the push/pull is occuring - might have
resulted in a note being lost

Related to #124
2020-06-10 13:03:28 +02:00
5af4edda18 SyncButton: Always show the number of changes
Even when pulling/pushing
2020-06-10 12:57:53 +02:00
c7c77b1838 Revert "Fix build"
This reverts commit d6a288c085a3527309e4fa2947fb814885521a50.

Not sure what is going on.
2020-06-10 12:21:13 +02:00
cc63146da7 Update CHANGELOG
We no longer have the advantages of using flutter_web_auth, there are
just too many blockers, such as -

* ios8-10: https://github.com/LinusU/flutter_web_auth/issues/19
* Even on Android this doesn't work reliably as I quite often get a
  User Cancelled exception
2020-06-10 11:59:47 +02:00
66a76a0767 Revert "Use flutter_web_auth instead of our own OAuth mechanism"
This reverts commit 763cbf8493c610dec0e7e344bee40ad331e7a272.
This reverts commit ddad699b259bafe6c7ed630e7afc2eb38b7825e6.

This is causing way too many problems -

On Android with GitHub we occasionally get a User Cancelled exception.
On iOS this doesn't work < ios11

I prefer keeping my way till then. Even though it doesn't support
KeepAlive on Android.
2020-06-10 11:53:43 +02:00
783dbaa505 Bump version 2020-06-10 10:56:40 +02:00
2fbba91be6 HomeScreen: initializeDateFormatting
This seems to be required while using intl. Not doing it doesn't seem to
be a problem right now, but as I support more locales, I think it will
be required.

This entire intl this is a bit confusing.
2020-06-10 10:50:48 +02:00
4d26de51b6 Use custom fork of intl
This way I can work with the ios Simulator
2020-06-10 10:50:12 +02:00
03b20b274b Add Helpfull comment for the future 2020-06-10 10:49:59 +02:00
4591c73fb0 ios: Format Info.plist 2020-06-10 10:49:29 +02:00
0aa995e52a ios: Add CFBundleLocalizations for en 2020-06-10 10:49:15 +02:00
88552fe8e9 Revert "Workaround intl bug by harding 'en' locale"
This reverts commit 303192d9d575b26a77a00f7a62212f310ec1e329.
This reverts commit cd9d128b47ed523036f7ae1232ec7adcf04ed8a9.

GitJournal is used by non-English speakers (a lot in China and Russia)
and while we don't support those languages completely, we do support
them a little bit. I don't want to loose this functionality. It would be
better for us to fix the bug in intl.
2020-06-10 09:31:08 +02:00
267ecb7499 Implement a very basic file system view
This will show all the files and not just the "notes". This way the user
can easily figure out why a file isn't included in the list of notes.

It's currently disabled by default as it clearly needs a lot more work.
2020-06-10 00:54:15 +02:00
d6a288c085 Fix build
With the latest flutter the build file seems to have a different name.
Yaye.
2020-06-10 00:49:57 +02:00
027921a823 Add issue and pr templates 2020-06-09 20:10:43 +02:00
ddad699b25 Fix flutter analyze 2020-06-09 18:56:51 +02:00
303192d9d5 Initialize intl in tests
This sucks.
2020-06-09 18:44:37 +02:00
cd9d128b47 Workaround intl bug by harding 'en' locale
https://github.com/dart-lang/intl/issues/266

This is strange since Intl.getLocale() returns 'en_US' in my case.

Currently, GitJournal only supports 'english' anyway, so this shouldn't
be a big problem.
2020-06-09 18:23:43 +02:00
9ba0bc831c Catch possible exceptions when creating the fileName
This can apparently happen, and we should have a fallback. Additionally
Dart has both an 'Error' and an 'Exception' which are two different
things. This makes no sense.
2020-06-09 18:09:17 +02:00
9cb810f41d Handle case where documents path changes
It seems sometimes when an app is updated their documents path changes.
So our cached version of it is now incorrect and needs to be refreshed -

Fixes #159
2020-06-09 17:44:04 +02:00
eb37ae592c Update ios deps 2020-06-09 17:43:28 +02:00
763cbf8493 Use flutter_web_auth instead of our own OAuth mechanism
This works slightly better on iOS and on Android it has a keep alive,
which will prevent our app from being killed. Additionally, this way
there is less for me to maintain, which is always nicer.

The API for flutter_web_auth is also much simpler.

This also inolves some custom logic for parsing the Query Parameters
from the GitLab callback, as it doesn't seem to be a proper URI. Not
sure what is going on with Gitlab.
2020-06-09 17:09:38 +02:00
32bd44dac4 Bump package_info 2020-06-09 17:09:17 +02:00
7226bc1c41 Setup: Reset state of some variables
That way if we go back and try to restart the previous errors are
cleared.
2020-06-09 17:08:42 +02:00
67c2777d9b Parse links in wiki syntax [[term]]
This way we can use this faster syntax which is also supported by
Obsidian.
2020-06-08 00:52:03 +02:00
702366671a Move Link to its own file 2020-06-08 00:35:55 +02:00
a43498ef6d Editor Heurisitics: Should work even if the items have spaces 2020-06-08 00:28:14 +02:00
fa9b3196f7 ios: Some weird code signing provisioning stuff 2020-06-06 13:56:56 +02:00
991af6e1fb Add a test to make sure new notes always have a file extension
This bug has appeared way too many times
2020-06-06 13:52:23 +02:00
82012d1d06 Bump version 2020-06-06 12:33:42 +02:00
e6be9aa228 Ensure new notes always have a proper file ending 2020-06-06 12:31:24 +02:00
d736af3332 Trying fixing the build in the CI 2020-06-04 16:49:19 +02:00
e15c99f2aa Add a script to record the screen 2020-06-04 16:01:45 +02:00