38 Commits

Author SHA1 Message Date
e9c7adafd1 Add useful debug statement 2021-02-04 12:00:47 +01:00
608a613757 Add a hack of ignoring folders with a '.gjignore' file
In the future we should open this file and ignore paths similar to how
.gitignore does it. For now, lets use this hack.

Requested by a friend
2021-02-04 10:59:04 +01:00
a2e8f629df Always sort the tags
Fixes #373
2020-12-27 11:00:20 +01:00
03e3d1f1c5 Remove verbose logging 2020-11-18 16:08:46 +01:00
aaf96c82d1 Convert IgnoreReason to an enum 2020-11-09 12:10:38 +01:00
63cc668db2 Improve log messages
* Remove one annoying one
* Event is an enum and prints a 'Event.'
2020-11-09 11:35:46 +01:00
ee34e2f628 Avoid annoying log statement
The reason should be saved in some other place so the user can know what
is going on. The debug logs get cluttered with this and this would leak
the folder names.
2020-11-08 10:36:29 +01:00
7be85bf569 Avoid using tr inside NotesFolderFS
Not sure why it doesn't work.

Fixes APP-F4
2020-11-03 13:44:58 +01:00
c86e0d278c Remove verbose logs
These make reading the log files in bug reports really hard. Also it
contains some personal info, so I rather not have them.

I can look into another way of showing the user why certain files were
ignored.
2020-10-21 17:08:31 +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
82db15128b NoteFileFormat: Refactor
Get all the allowed extensions in one place. Currently the code is
scattered all over the place.
2020-09-26 19:19:26 +02:00
ec91a784de NotesFolderFS: Remove any notes which failed to load 2020-09-03 13:42:54 +02:00
074e918db4 Implement basic inline tags
Fixes #44
2020-09-02 17:24:34 +02:00
6d101ad5c4 Remove flutter crashlytics
Sentry is being used instead, and it's working out quite well.
2020-07-26 19:05:52 +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
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
42d6386096 Add basic txt file support
With this 'txt' files are now read and written. However, they don't have
any metadata so they don't show up correctly in the sort order and
currently the Markdown Editor is still available for them.

Related to #55
2020-06-02 00:15:18 +02:00
fb5ab57fe0 Folder.removeFolder: Remove listeners recursively
Ideally when removing a folder one shouldn't have any notes, but
sometimes we do allow an entire folder to be reset.

Related to #36
2020-05-31 03:38:24 +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
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
816cb0c3ed Reduce code duplication
Avoid code for determining the publicName of a folder.
2020-05-18 00:23:14 +02:00
a324d0f755 Logging: Allow logging structured fields
Display this in the Debug Screen app. Additionally, add a reason why a
file was not loaded.
2020-05-17 19:47:11 +02:00
7ef9cfe60f Minor refactor 2020-05-14 13:03:12 +02:00
600738fc0e FolderLoading: Output loading info to logs as verbose
The most common issue is why a certain file is not being loaded. This
isn't the ideal way, but it's a quick fix in order to diagnose what is
going on.
2020-05-08 10:35:45 +02:00
77e67fca11 Rename Folders properly
1. Actually rename the folder instead of calling rename with the oldPath
2. Inform the parentFolder that a sub-folder has been renamed so it can
accordingly update its mapping.

Fixes #108
2020-04-20 02:11:42 +02:00
5784399ac6 Remove NotesFolderFS::insert
The position of the note in the folder doesn't matter as Virtual folders
on top of this sort it according to how to how the user wants them to be
sorted.
2020-04-20 01:56:32 +02:00
14d734bf08 Fix handling of Note renames
We often use the note's filePath as a unique identifier, however that
can change, and we need to update the caches accordingly.

Fixes #97
2020-04-10 13:45:19 +02:00
bb0e574495 Abstract out the logging
This way moving away from Fimber will be much easier.
2020-04-04 11:50:57 +02:00
9e60a74c19 Allow opening relative links while are notes 2020-04-02 19:34:54 +02:00
fe08b53539 Add a .gitjournal.yaml file in a folder
This file will be added to save the settings of how we want that folder
to behave. For example - default Editor, view, sorting mode, etc.

This feature is currently disabled as it will only be a part of the pro
mode.
2020-03-31 14:02:38 +02:00
965639e6f2 Add the concept of Folder Settings
This contains the default editor / view / sortingMode / etc. For now the
folder settings are shared among all Folders. But the idea is that we
should be able to set different settings per folder (real or virtual)
2020-03-31 11:16:04 +02:00
d789a2f6f0 FlattenedNotesFolder: Improve test 2020-03-21 14:16:43 +01:00
403831ccd0 NotesFolderFS: Avoid multiple load operations in parallel 2020-03-21 01:32:24 +01:00
613afee32e Remove the extra verbose logs
They were just too much.
2020-03-21 00:46:03 +01: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
0a0e03a660 Fix reset bug 2020-03-16 19:40:08 +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