213 Commits

Author SHA1 Message Date
5f6c9f2f97 Make App Drawer strings translatable 2020-08-10 10:34:03 +02:00
1379fcfb0b AppDrawer: Use enum Events instead of strings
It's easier when all the events are declared in one place. This patch
gets us one step closer to that.
2020-08-09 02:10:39 +02:00
2bc9e8deaf More removals of Settings.instance 2020-08-09 01:59:07 +02:00
9d55b449d3 Settings: Access it through the Provider
Make it a ChageNotifier and try to access it through the Provider
instead of like a global variable. This way, the state is better
managed and it'll be easier to split out Settings into smaller classes.
2020-08-09 01:29:22 +02:00
a98b99dcb5 refactor: Move SortingOrderSelector into its own widget
Also translate it
2020-07-31 21:39:27 +02:00
8e8c11c5ef FolderView: Refactor NewNoteNavBar into its own widget 2020-07-31 20:47:18 +02:00
b85f9028fe Half implement Note selection in a FolderView
This allows you to long press on a note and select it, thereby allowing
you to perform actions on it, without opening the note.

This is disabled for note, as it isn't completely implemented. I'm not
sure how to pass down the informatin on which Note is selected.
2020-07-31 20:36:20 +02:00
2ef2ccdf23 Editors: Allow the title to be edited even when YAML is disabled 2020-07-29 16:27:15 +02:00
2396b34b75 Allow the FS view to be experimentaly enabled 2020-07-26 19:05:47 +02:00
28d53242d8 Move away from RevenueCat
The iOS updates keep getting rejected, and I think it's because
RevenueCat is taking too long to respond. Additionally, revenueCat
doesn't really give us anything useful as its receipt validation isn't
perfect, and I've had to roll my own.

Plus from a privacy point of view, this is better as we are no longer
talking to any third party service.

This has so far only been tested on iOS
2020-07-26 12:20:09 +02:00
998da3e94c AppDrawer: Add hidden options to move between repos
This commit doesn't do anything, but it took me way way too long to
implement this basic UI. It's commented out for now.
2020-07-24 16:31:43 +02:00
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
5253c7bdd1 PurcahseWidget: Log the revenuecat errors
These shouldn't be happening.
2020-07-23 18:00:33 +02:00
33f34936fa PurchaseWidget: Show an error on the screen
Instead of via a scaffold
2020-07-23 17:59:44 +02:00
5d7f616c6e const++ 2020-07-21 10:46:03 +02:00
c24cca6395 PurchaseWidget: Use the correct scaffold 2020-07-14 20:59:50 +02:00
4e61c21088 NoteTagEditor: Add the tag when hitting Enter 2020-07-09 17:51:01 +02:00
e6d479d804 Increase the default price
It'll be nice experiment to see if this results in people paying more.
2020-07-09 16:52:17 +02:00
a861c16e8f PurchaseSlider: Add buttons to make chosing the price easier
This way we can more easily choose the value, as the slider is quite
buggy.
2020-07-09 16:50:27 +02:00
94730c7040 PurchaseWidget: Move slider to its own file
Also de-couple it from RevenueCat specific APIs.
2020-07-09 16:31:49 +02:00
51d79fdbf2 PurchaseScreen: Fix scrolling
Putting a column inside a SingleChildScrollView is way way too complex.
There are lots of different solutions, and not all seem to work for me.

Also adjust the loading screen.
2020-07-09 13:21:23 +02:00
4109563293 Move PurchaseWidget to its own file 2020-07-09 12:25:30 +02:00
352879b965 Add support for rendering wiki links
This way clicking on a wiki link also opens the corresponding note, if
it exists.
2020-07-09 01:02:32 +02:00
7506e3990d Detect all kinds of local links
Not only links which start with ./

We also try to guess with the .md or .txt extension if the file is
present.

Fixes #173
2020-07-07 23:27:44 +02:00
a86843a2b5 Fix note link navigation
Fixes #173
2020-07-06 16:58:12 +02:00
6aeb6f7119 NoteBacklinksRenderer: Add debug logs
This renderer occasionally hangs, I'm not 100% sure why, and these logs
will help diagnose the issue.
2020-07-05 20:48:03 +02:00
d8772e882a Allow backlinks preview to be disabled from the settings
This adds a new Experimental Settings page.
2020-07-04 19:51:59 +02:00
a22f5ae758 Fix new imagebuilders arguments 2020-06-19 12:49:14 +02:00
421a30b016 Fix linking of relative links
This broke while trying to support the [[ ]] syntax.
2020-06-19 12:40:01 +02:00
3be7a7d350 Fix opening on relative notes when clicking on a link 2020-06-19 12:39:43 +02:00
5e557ef6c3 Rename MetaLinkSyntax to WikiLinkSyntax 2020-06-12 13:50:54 +02:00
ede78f6019 Change <hr> width
5px seems to much. It now looks similar to how GitHub renders it.

Fixes #167
2020-06-12 13:05:46 +02:00
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
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
97812e1501 Convert more prints to logs
This way they will show up in the LogViewer
2020-06-10 13:25:22 +02:00
5af4edda18 SyncButton: Always show the number of changes
Even when pulling/pushing
2020-06-10 12:57:53 +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
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
daf04b9fe0 Fix folder short names 2020-06-04 14:38:11 +02:00
60de996761 Note Tag Editor: Add a FAB
It's not obvious that you can click on the app bar to start typing.
2020-06-04 14:14:42 +02:00
d1677327c2 Do not show the Markdown Editor for txt files
Fixes #55
2020-06-02 00:33:36 +02:00
2a35ea7c38 BugReport: Send bug reports with new logs
Earlier we used to call 'adb logcat' and get all the logs and send
those. This didn't work on iOS and we wouldn't get all the logs even in
android at times as the logcat buffer can be unreliable.

Since now we log all the messages to a file, we can just send that file.
The disadvtange is that we only get Dart level logs, and not iOS or Java
or NDK or our C libraries logs.

I should really dump libgit2 ASAP.
2020-05-31 02:42:58 +02:00
d3fb2b7119 Try to make the backlinks section prettier
I'm not totally convinced that it should be here.
2020-05-26 18:05:50 +02:00
36f31e06bb Move NoteBacklinks Widget to its own file 2020-05-26 17:07:57 +02:00
96ed70f023 Show the backlinks of a Note
This is the initial proof of concept and doesn't look very pretty. It's
also not very efficient.

Related to #141
2020-05-26 15:37:09 +02:00