100 Commits

Author SHA1 Message Date
d7fb172da5 Temporarily disable Title based on FileName
It isn't fully implemented and I need to make a release ASAP
2021-02-13 13:29:26 +01:00
b7e274c937 Add FileName option in Note title settings
This doesn't do anything right now. It just shows the option.
2021-02-12 15:32:10 +01:00
9a3bf6ad42 Automatically use dark mode based on system settings
Fixes #193
2021-02-06 23:01:09 +01:00
13f060e6e1 Add Date Only FileName option
Fixes #346
2021-02-06 20:54:45 +01:00
e87a096c7d Allow Delete dialogs to be configured
Fixes #330
2020-11-18 13:01:33 +01:00
6983f91a47 Fix iCloud problem
Fixes #296
2020-11-17 14:09:59 +01:00
b54e8018af Log if the private key is not empty in the settings
It typically shouldn't be
2020-11-11 13:44:24 +01:00
3aaa397021 Fix reseting the git host 2020-11-10 18:11:26 +01:00
2bb0646f48 Log errors if public/private key is empty
This shouldn't ever happen. It means a migration has gone wrong.
2020-11-07 10:05:41 +01:00
07d0bdb7d8 Migrate setting to be repo specific
Each attribute of the settings is prefixed with the "id" of the repo.
2020-10-23 15:25:12 +02:00
a9abf5d9b3 Make Setting Migrations independent of the Settings class
That class is going to lose many of its members, and I don't want to
keep the old ones just for compatibility sake.

Also give each setting the concept on an id - will be used later.
2020-10-23 14:38:16 +02:00
c9673da721 Move Setting migrations to its own file 2020-10-23 14:23:37 +02:00
f75e119995 Make Settings take the folderName as a parameter 2020-10-23 02:29:48 +02:00
16dea3af1b Do not log the ssh public key
Not necessary
2020-10-21 17:09:18 +02:00
bfdbfccba7 Settings Migration: Make sure the keys actually exist 2020-10-21 15:42:13 +02:00
98c92a3fe1 Handle new version of git_bindings
This changes the way the SSH keys are managed, they are no longer
managed by the git_bindings plugin and are instead just passed as
parameters. They are now saved in shared_prefs. This allows us to easily
have multiple ssh keys.

It also allows us to store the ssh keys in a more secure storage
location in the future.
2020-10-19 14:52:24 +02:00
6b1a9caf86 Remove unnecessary logging
This was added to figure out the cause of a bug. Now that it's clear,
and fixed, I can remove these logs.
2020-10-18 09:46:43 +02:00
f7e6730b9e Properly migrate from old destination
Fixes APP-40
Fixes APP-DT
Fixes #270
2020-10-18 09:34:07 +02:00
09b6a6bbff Migration: Only delete the cache if it exists
Fixes APP-EE
2020-10-18 09:18:33 +02:00
5441700f28 Move building the repo's path logic to one place
Instead of having it duplicated
2020-10-17 12:33:19 +02:00
81bd1322a6 Settings: Rename internalRepoFolderName to folderName 2020-10-17 12:28:14 +02:00
fd74a86abf Remove the whole local/remoteConfigured settings
We now infer this by checking if the directory exists, and by reading
the git config. It's a bit slower, but it's a far better method. I can
add a cache later, if it turns out to be too slow.
2020-10-16 15:13:34 +02:00
7153498595 The bottom menu bar should be available by default 2020-10-16 02:33:06 +02:00
5c2e336343 Save Notes Cache in the cache directory
It shouldn't be saved in the Documents folder. Now that this folder is
exposed on ios, I should remove all non-user related files from here.
2020-10-16 01:10:18 +02:00
540078c413 Improve repo migrations
Earlier we had one folder 'journal_local', when the remote would be
setup a new folder called 'journal' would be created, and each all the
files would be copied over. This meant the local history was being
destroyed.

Now, we only have 1 folder 'journal', and on 'cloning', we add the url
as a remote, and do a git fetch + merge.

This simplifies everything drastically, and opens the door for multiple
remotes.
2020-10-15 12:18:47 +02:00
044592b92d Allow Journal Entries to have their own file naming scheme
Adding an individual setting is becoming way too complex now.
2020-10-12 18:21:26 +02:00
cdfa7d690a Add a setting to store the repo in the external storage
This is Android only, and for now it is disabled as I'm not sure why I
cannot access the "general" root directory.
2020-10-09 10:43:16 +02:00
9499cea164 Remove Settings global
Stop it being a singleton. This means it needs to be passed around a
lot. This sucks, but it's how it should be. I shouldn't be using a
global variable to get around this.

This is needed as Settings will soon become repo specific when we
support multiple repos.

This breaks saving the settings in a file, that feature was toggled off
anyway. It needs to be thought over again.
2020-10-09 00:59:19 +02:00
62bea50506 Allow the bottom menu bar to be hidden
Fixes #261

The settings page for this is quite ugly right now, but the feature
works. I can improve its look another time.
2020-10-05 12:25:57 +02:00
fe08834259 Split Settings into AppSettings and Settings
This way I can eventually change Settings into RepoSettings without
breaking anything.
2020-09-25 00:33:54 +02:00
f30c52f595 Move all persistent state from AppState to Settings
This way all the persistant state of the app is managed from the same
place. It makes everything much easier. Also, it's required for when
GitJournal supports multiple repositories.
2020-09-24 23:45:37 +02:00
265e253584 Generate one journal entry per day
Fixes #243
2020-09-16 11:08:16 +02:00
f7adeafe7d First iteration of the Graph View
I'm testing this with the Foam documentation. This has revealed a number
of bugs in our link resolver - most of which have now been fixed.

The graph layouting is not being done as this is so incredibly slow.

This has been added as an experimental feature.
2020-09-14 17:47:26 +02:00
56e5c10696 Add scaffolding to make emoji parsing optional 2020-09-08 23:33:48 +02:00
888e391af8 Settings: Make more parts translatable 2020-09-05 12:31:01 +02:00
4c55c0882d Add an easier way to toggle pro mode 2020-09-04 08:19:56 +02:00
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
9859aa6106 Allow custom metadata to be specifiec for any note
This way we can add 'draft: true' to all new notes.

Fixes #168
2020-08-18 10:47:26 +02:00
4bcbf8226a Move onBoardingCompleted from AppState to Settings
I want to get rid of the AppState entirely. It serves exactly the same
purpose as Settings.
2020-08-16 15:29:49 +02:00
1a4d3bef9a Add Zettelkasten filename format as an option
Fixes #216
2020-08-15 11:28:24 +02:00
46269dd94a Implementing controlling of the sorting order
The dialog looks quite ugly right now, but at least everything works. I
can work on making it prettier after this.
2020-08-14 19:17:38 +02:00
c7d8568529 Settings RemoteSyncFreq: Make strings translatable 2020-08-11 14:13:42 +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
33c5aae23e MarkdownToolBar: First attempt at the toolbar
This can be enabled via 'Settings -> Experimental'. It's very rough
right now and a lot still needs to be done.

Related to #157
2020-08-06 13:40:45 +02:00
619023660f NoteMetaData: Allow tags key to be configured
Fixes #206
2020-08-06 10:55:41 +02:00
c5deb3e988 Allow the 'created' YAML metadata to be configured
Related to #206
2020-08-03 00:46:41 +02:00
41447027f2 Allow 'title' saving to be configured
We now allow it be to either saved as the H1 or in the YAML metadata.
I'm not sure what the default should be. Still deciding.

Fixes #112
2020-07-28 17:26:42 +02:00
175bf85531 Save zenMode in settings
That way we don't need to toggle it each time.

Maybe it would be nice to have this exposed via the settings as well,
per editor. So I could enable it / disable it per editor.
2020-07-27 10:08:17 +02:00
2396b34b75 Allow the FS view to be experimentaly enabled 2020-07-26 19:05:47 +02:00