39 Commits

Author SHA1 Message Date
3bde3f6318 Stop using deprecated Theme selectedRowColor 2023-12-06 07:33:51 +01:00
ea8cd35261 Fix deprecated methods 2023-02-09 16:00:29 +01:00
ca98da4029 Update deps and fix linting issues 2023-01-20 16:14:08 +01:00
d164562b54 Make sure the rootFolder says "Root Folder"
Instead of some empty text
2023-01-20 12:52:06 +01:00
756465c76f Handle a few more cases of easy_localization
We are almost done
2022-11-27 19:02:32 +01:00
6d453ee62a Rename app_localization_context to l10n
It's easier to enter and this file now contains far more things
2022-11-27 17:52:03 +01:00
48ab9669c8 Convert more cases to use the ARB 2022-11-27 17:46:45 +01:00
ae9228f65e Use super.key
Makes the code a bit more readable.
2022-08-25 11:32:25 +02:00
3ede4634a3 StatefulWidget: Mark internal variables are private 2022-01-27 12:38:57 +01:00
26c2de9f99 Fix translation 2022-01-13 18:31:30 +01:00
f4e8437c91 FolderTree: Subfolders shouldn't show the full path 2022-01-13 18:27:10 +01:00
e1ea7a4953 Fetch the modified + created time from git
Fixes #78

This is probably the largest commit that I have ever made. From now on -
every File always has an mtime and ctime which is fetched from git.
Notes can optionally override that time by providing yaml metadata.

Additionally the 'filePath' and 'folderPath' is now relative to the
repoPath instead of being the full path.

This will slow down GitJournal like crazy as all the mtimes and ctime
still need to be cached. For my test repo it takes about 23 seconds for
GitJournal to become responsive.
2021-10-26 17:49:08 +02:00
6a915864f2 Move NotesFolder's code to their own folder
The 'core' folder is becoming way too huge.
2021-10-15 12:31:35 +02:00
7e0a77ace3 Fix many cases of 'avoid-ignoring-return-values'
Now that dart-code-metrics has been updated, this lint can finally be
used. So far all of these are false positives, in the sense that I don't
care about their return values.

I wish there was an easy way of marking functions whose return value
shouldn't ever be ignored.
2021-09-27 18:39:18 +02:00
c4ef1f569b Use flutter_lint
Instead of picking lint values. This way I don't need to routinely
looking at extra lints to enable.
2021-09-21 15:42:13 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
7012e2b533 Stop using deprecated accentColor
For Flutter 2.5
2021-09-13 17:32:33 +02:00
384c64b1cc null safety++ 2021-05-25 12:57:06 +02:00
d008f0d982 First version of dart migrate
Most of the files haven't been migrated. Lets work on this bit by bit
2021-04-10 22:18:35 +02:00
984fc6864e Make all remaining strings translatable 2020-09-08 23:01:39 +02:00
daf04b9fe0 Fix folder short names 2020-06-04 14:38:11 +02:00
816cb0c3ed Reduce code duplication
Avoid code for determining the publicName of a folder.
2020-05-18 00:23:14 +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
020c65e132 Minor cleanup 2020-02-28 14:16:05 +01:00
9e520e7e95 FolderSelectionDialog: Make it prettier
We don't need it to have such large icons.
2020-01-29 17:04:18 +01:00
43281bd2bb Add support for moving a Note to another folder
The Folder selection dialog needs a lot of work, but it's a start.
2020-01-29 16:51:57 +01:00
27d5af8b01 FolderListing: Change the scaffold when a folder is selected
This way it's way more obvious. Also, add a back button so the user can
cancel the selection more explicitly.
2019-12-11 21:09:40 +01:00
8c6a33456a Allow folders to be renamed
This is a huge change which involves -
* Implementing Folder renames on the FS + Git level
* Implementing the concept of selecting an item in the FoldersListView,
  this feature isn't provided by default, and even now I'm not sure if
  the semantics which I've implemented are correct. I haven't
  implemented multiple folder selection for now.

Related to issue #18

Also, we're now one step closer to allowing notes to be renamed (#23)
2019-12-06 21:32:41 +01:00
a51f8f170f Make Note and NotesFolder ChangeNotifiers
This will allow us for finer grained notifications of when things change
so we don't have to rebuild everything, like we do currently.
2019-12-06 01:22:57 +01:00
4869c1bc70 FolderView: Make the icons the accent color 2019-12-05 18:07:49 +01:00
e1140f0589 FolderTreeView: Make the icon bigger 2019-12-05 17:59:49 +01:00
f08d72bb00 FolderListing: Show the number of notes per folder 2019-12-05 17:48:31 +01:00
47f417ab3a FolderTreeView: Show it expanded by default 2019-12-05 17:35:45 +01:00
8d1feb6f76 FoldersView: Add the root folder - Call it "Notes"
This way the FolderView is never just empty. It looks bad otherwise.
2019-12-05 16:22:44 +01:00
10d65cd6fb Rename NoteFolder -> NotesFolder 2019-12-04 15:33:27 +01:00
464b7512e9 Move Note and NoteFolder class into a core folder 2019-12-04 14:18:11 +01:00
50b8238c27 FolderListing: Hook it up to the JournalListing
Now clicking on a Folder shows all the notes from that folder. You can
even modify the notes, but deleting and adding notes won't work
correctly right now.
2019-12-04 01:30:23 +01:00
c8bfa0e2a0 Move FolderTreeView into its own file 2019-12-04 01:14:17 +01:00