76 Commits

Author SHA1 Message Date
0f5bb345d3 Allow Swipe to delete to be configurable 2020-08-31 11:38:04 +02:00
aabeb57fc0 InlineTags: Add settings page
And support multiple prefixes.

This is disabled for now as it hasn't been fully integrated.
2020-08-21 12:18:55 +02:00
8861b6a511 Sort imports 2020-08-12 18:06:35 +02:00
a60de417a3 Add a Feature Timeline screen 2020-08-12 17:36:00 +02:00
c048ead8a9 Log every feature and how we reach the purchase page
We now have a list of all the features that are implemented, and we can
use that to show a kind of feature list which can be used to -

1. Move away from app rental model
2. Showcase a feature list; see WorkingCopy
2020-08-10 16:05:26 +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
e3f8cd9397 EditorSettings: Make all strings translatable 2020-07-31 21:25:30 +02:00
8ab7ec22c4 Always check if a Folder exists before accessing it
This kinds of bugs will be less frequent once we have non null by
default enabled in Flutter.

Fixes #164
2020-07-31 21:16:36 +02:00
92f4929042 Fix email regexp
Fixes #181
2020-07-26 17:39:30 +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
5d7f616c6e const++ 2020-07-21 10:46: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
8ac24a7b86 Add a link to the Privacy Policy and Terms and Conditions
iOS requirement
2020-06-03 13:43:28 +02:00
6e229aeebd Translate Git Remote Settings title/subtitle 2020-05-29 13:26:29 +02:00
cb8764f52d Translate NoteMetaData settings 2020-05-29 13:23:23 +02:00
8b4fa886ba Add a CustomRouteObserver
This basically asserts if we move to a route without a name. This way
I'll always catch when a route doesn't have a name, and I can start
getting better analytics on which screens are used most frequently.
2020-05-26 13:43:41 +02:00
b0354b5c3f DebugScreen: Translate the strings 2020-05-20 00:56:55 +02:00
4c56ddc4df Allow the default Image location to be configured
Fixes #10
2020-05-20 00:32:13 +02:00
26ed82fdbc Make "Root Folder" translatable
It was earlier duplicated all over the place.
2020-05-18 00:26:00 +02:00
ef57e263ba ProSettingsOverlay -> ProOverlay
Also move it to its own file
2020-05-14 16:10:09 +02:00
faf561f104 Allow configuring the Home Screen
It can either be the Folders view or the All Notes view.
2020-05-08 19:30:53 +02:00
b2d0cf44ab Stop using deprecated TextStyle properties 2020-05-08 10:55:00 +02:00
ea733aacb5 Add a very simple Debug screen
This will show all the debug messages, which include when a file is
being ignored and not loaded, and hopefully all the exceptions. So the
user should be able to better understand why a file has been ignored.

It's not an ideal solution, but it's a quick fix.

Fixes #122
2020-05-06 01:09:57 +02:00
99a3d6214f Settings: Make some of the strings translatable
Man, this is going to be exhausting. There are some 165 Text instances.
So this mean probably around 200+ strings.
2020-05-05 17:29:04 +02:00
efec0500f3 Add basic scaffolding for translations
I still need to go through all the public string and document them.
2020-05-05 17:16:07 +02:00
e5cd9ddec2 Email Regexp: Allow dashes 2020-04-21 20:49:26 +02:00
d03213178c Settings: Move Editor Settings to their own screen
It just has the default settings right now, but we need to expose some
settings in the Markdown Editor.
2020-04-16 13:06:11 +02:00
37909c84f8 Make sure widgets are mounted
Might solve some of the crashes
2020-04-10 12:12:17 +02:00
610c4ea8a7 Allow the default folder for new notes to be configured
In the "All Notes" screen
2020-03-21 00:14:38 +01:00
b252f037b3 Rename NotesFolder -> NotesFolderFS
And NotesFolderReadOnly to NotesFolder. It just makes more sense this
way as we're now getting more and more different "types" of
NotesFolders.
2020-03-15 02:01:07 +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
3a3ec76529 StateContainer: Use Provider
This way we can avoid listening for changes in many places.
2020-02-11 19:10:34 +01:00
1d0cf3ab6d Save the selected sorting mode 2020-02-09 22:41:16 +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
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
bd0819c5be Settings: Disable the Git Remote Settings when no remote present 2020-01-27 19:01:47 +01:00
7e3cfb9e37 Allow the default yaml modified key to changed
Some people are using GitJournal to edit Hugo websites, this option is
for them as the Hugo front matter uses the 'lastmod' key to indicate
when the post was last modified.
2020-01-05 18:24:46 +01:00
dccd58c5f1 prefer_const_constructors 2020-01-04 15:44:34 +01:00
e0afa27b06 Expose Git Remote Settings
This way you can regenerate the SSH Key (if needed) and/or copy it
again. In the future one can add methods to reconfigure the git remote
and add / remove remotes.
2020-01-04 15:31:28 +01:00
bb564f1511 Settings: Use SwitchListTile instead of our custom widget
I didn't know this widget existed.
2019-11-02 10:56:28 +01:00
0d760348ce Settings: Split widgets into their own file 2019-11-02 10:40:03 +01:00
ffc0af12a3 Enable prefer_const_constructors 2019-10-20 01:11:53 +01:00
e8d8c58bff Setting Dialogs: Remove margins and add a Cancel button 2019-10-19 12:07:31 +01:00
c2247c26e9 Settings: Use Radio buttons in dialogs
Instead of highlighting the last selected option.
2019-10-19 12:02:13 +01:00
b4fd9d33f7 Settings: Make 'Dark Theme' a toggle
There are just two options. It doesn't make sense to open a dialog box
and then let the user choose.
2019-10-19 11:53:29 +01:00
fbb1b12cb2 Settings: Use a switch instead of a checkbox
Follows the Material Design scheme better
2019-10-11 02:30:45 +02:00
5b25fd56c1 Settings: Git Author Email: Mark keyboard type as email 2019-10-10 16:58:12 +02:00
678bf7b879 Fix warning 2019-10-08 14:55:00 +02:00
2238e8343f Remove preferences dependency
It doesn't follow the Material Design spec, and usually required a
PreferencesService to be running. It is easier to just create our own
widgets.
2019-10-08 14:52:09 +02:00
e331e76c4f Settings: Replace CheckboxPreference with BoolPreference
It's better to have our own small class for this as the one provided
with the library tries to contact the PreferencesService and that isn't
what we want.
2019-10-08 14:50:18 +02:00