735 Commits

Author SHA1 Message Date
4869c1bc70 FolderView: Make the icons the accent color 2019-12-05 18:07:49 +01:00
a39ed51abf Divider: Use the theme color 2019-12-05 18:07:40 +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
199e298903 JournalEditor: Show "note" instead of "Journal"
It seems we are moving towards a more generalized Note taking
application. I'd still like to use it for both Note taking and
Journaling. I'm not sure how to clearly show it is meant for both.
2019-12-05 17:40:08 +01:00
7d223509c8 JournalListing: Show Folder name in title 2019-12-05 17:38:40 +01:00
47f417ab3a FolderTreeView: Show it expanded by default 2019-12-05 17:35:45 +01:00
0b8dcaf8f6 AppDrawer: Minor refactor 2019-12-05 17:34:43 +01:00
a504435eca Add const 2019-12-05 17:23:19 +01:00
07ad503348 AppDrawer: Go back to the main route without stacking
The routing would be confusing otherwise
2019-12-05 17:22:31 +01:00
4682896592 AppDrawer: Add a divider between some elements
This clearly groups them together.
2019-12-05 17:19:22 +01:00
975b235df3 Add Folder creation
Folders for now can only be created under the root folder. I cannot seem
to figure out how to design a good interface for designing how to choose
the parent folder.
2019-12-05 17:08:02 +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
a7aab08c67 Fix flutter analyze
Import ordering
2019-12-04 15:56:04 +01:00
8f7aaf284c Update changelog 2019-12-04 15:43:41 +01:00
ca2102a8b0 Expose the Folders view
This adds a new 'Folders' screen which shows you all your folders and
lets you manage the notes inside them. It currently doesn't allow you to
add or remove Folders, though.

This nearly addresses #18
2019-12-04 15:33:30 +01:00
5b8fc6342a Connect the AppState to the Folders
Now when adding/editing/removing a note, it gets modified from the
directory it was present in. There is no longer a just a plain list of
all notes, but always a tree of notes, which are inside Folders.
2019-12-04 15:33:30 +01:00
10d65cd6fb Rename NoteFolder -> NotesFolder 2019-12-04 15:33:27 +01:00
e287d41ffe Split out NoteFSEntity into its own file 2019-12-04 14:20:58 +01:00
464b7512e9 Move Note and NoteFolder class into a core folder 2019-12-04 14:18:11 +01:00
82bc568eb1 pubspec: Add bug version number
The Flutter linter complains if we don't have a bugfix version number. I
don't plan to use it, but oh well.
2019-12-04 01:33:48 +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
d607bad299 JournalListing: Only show the notes in that folder
Do not show all notes recursively, by default. The default screen will
now only show the notes in the root folder.
2019-12-04 01:30:10 +01:00
c8bfa0e2a0 Move FolderTreeView into its own file 2019-12-04 01:14:17 +01:00
10c4de0769 FolderTreeView: Simplify the code drastically 2019-12-04 01:09:58 +01:00
f2e40d4baf FolderListing: Indent sub-folders 2019-12-04 00:56:29 +01:00
3a3f9c7ad6 FolderListing: Show a leading arrow if the Folder has SubFolders
Also change the Arrow if the folder is expanded.
2019-12-04 00:51:41 +01:00
56ccf00260 FolderListing: Show the actual folders
Also don't load hidden folders
2019-12-04 00:35:29 +01:00
3f8159a353 Add the first iteration of a Folder Listing screen
This is just me experimenting with how the folder listing could look
like, and the different libraries I could use - For now I'm using the
https://github.com/ajilo297/flutter_tree_view library which I've forked
into this file, as it requires many many modifications to get it to how
I want it to work. Plus the library is really simple.
2019-12-03 23:57:13 +01:00
f86a878a9c Split AppBar Menu button into its own widget
Saves us the need to the GlobalKey as well.
2019-12-03 22:35:23 +01:00
04fa042f37 Add the first iterator of a different Notes View
This view is similar to the classical Google Keep style of showing
notes. It's still very bare-bones though
2019-12-03 22:09:03 +01:00
dda557e1bf Split HomeScreen into JournalListingScreen
The HomeScreen might need to show either a JournalList or some other
kind of listing.
2019-12-02 14:07:57 +01:00
abd5f09453 Renamed NoteEditor -> JournalEditor 2019-12-02 13:56:38 +01:00
474d396ad6 Rename NoteBrowsingScreen to JournalBrowsingScreen
I'm add a different interface for viewing Notes, similar to card viewer,
and it'll be nice to have a distinction between Journal viewing and Note
Viewing. The biggest difference is that when viewing a Journal, there is
a timeline and you want to be able to easily move between Journal
entries. Whereas with notes, they aren't connected in any obvious way.
2019-12-02 13:16:55 +01:00
702da72a51 Note serializer: Add yet another edge case 2019-12-01 16:43:13 +01:00
41526868ff Note Serialization: Handle more edge cases
Apparently parsing a YAML Header + body isn't as trivial as I expected.
2019-12-01 16:30:40 +01:00
d2f3f782c7 Bump version and update changelog 2019-12-01 15:52:07 +01:00
9b27dedcb2 Android: Always regenerate the ssh key when calling generateSSHKeys
If it already existed we would give an error about it already existing,
but the user would have no recourse of action, apart from uninstall and
reinstalling the app.
2019-12-01 15:49:31 +01:00
b7b6dc213e SearchBar: Make sure the text is visible
It seems that in dark mode the text is not visible as the primary color
remains white. This is a bug in flutter.

https://github.com/flutter/flutter/issues/32180

Thanks to William Lim for reporting.
2019-12-01 15:39:44 +01:00
103520e5e5 SSH Key Comment: Add Operating System and current Date
It's useful info
2019-12-01 12:19:28 +01:00
7ba8faa57f Remove the entire concept of a subFolder
When configuring the Git Repo server, we could optionally track one folder
in the root git repo, instead of just the root folder. This was
specifically to address my use case where I have my journals in a
sub-directory. The setup screen was super ugly, though.

Since now I'm in the process of adding folder support because of #18, I
can remove this hack. It simplifies the code a lot.
2019-12-01 12:04:45 +01:00
66957d5c9d NoteFolder: Add some useful functions
This is part of a much larger commit of adding Folder support, but since
that seems to be touching way too many things. I rather just commit
these small functions, and rethink the entire design.
2019-12-01 11:53:24 +01:00
3a2a57f985 Move Folder loading logic inside NoteFolder 2019-12-01 10:41:35 +01:00
4dbcabb183 Add a NoteFolder entity
This is the first step to add Folder support. For now the backend
understands the concepts of Folders, but the JournalList just shows all
of the notes, regardless of the folder.

Related to issue #18
2019-12-01 10:37:25 +01:00
6a9fe72e8d fixed git-clone-url-regex for dash-domains 2019-11-28 23:11:34 +01:00
fddefa3ff3 Revert "git clone: Force use of ssh protocol if not specified"
This reverts commit 8d11634108c6508674cde5e0e1b69c346a5a6bfd.
2019-11-14 13:22:15 +01:00
8d11634108 git clone: Force use of ssh protocol if not specified
If we don't specify the protocol, then specifying the port number
doens't work.
2019-11-11 02:06:08 +01:00
fc19590edf gj_common: Add 'git' and 'vim' to Dockerfile 2019-11-11 02:01:06 +01:00
7e005d9900 Ignore 'invalid credentials' platform exception 2019-11-11 01:17:20 +01:00
4e438e937c README: Fix broken links 2019-11-03 03:06:49 +01:00