41 Commits

Author SHA1 Message Date
076e8ff510 Bump flutter_markdown 2020-12-11 20:21:52 +01:00
c3d61d25cd Fix translation key 2020-10-23 00:06:13 +02:00
bc06efc446 Create new note when clicking on non existing Wiki Link
Fixes #240
2020-10-22 23:57:53 +02:00
00c4a07d72 Note Backlinks is clearly not experimental anymore 2020-10-21 22:32:34 +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
f3715bd3c8 Markdown DarkTheme: Make the checkboxes lighter
This entire way of styling the markdown badly needs to be re-done from
scratch.
2020-09-23 02:18:47 +02:00
3e785cbc97 NoteViewer: Fix translation string lookup 2020-09-22 23:26:49 +02:00
3a7f730489 Fix blockquote background color
The entire theme of the markdown viewer really needs to be improved.
2020-09-15 00:35:57 +02:00
984fc6864e Make all remaining strings translatable 2020-09-08 23:01:39 +02:00
6ba0f3974a NoteEditor: Pass it the parentFolder
A note has a parent which is the physical folder it is inside, and a
parent folder which it is being displayed inside. It's useful to have
the latter as that can be used to display the next note - in the case of
the Journal Editor, and open the graph view as well.
2020-08-20 10:42:39 +02:00
0c467e6b01 Move LinkResolving code to its own class
It has become sufficiently complex that a number of edge cases need to
be tested.
2020-08-10 23:49:09 +02:00
3e2306801b Add a test for the markdown node parsing
This way we will clearly know when the Markdown parsing fails because of
bugs in the markdown package.
2020-08-10 21:04:13 +02:00
17dff46660 Remove wikilink duplicate regexp 2020-08-10 20:31:46 +02:00
2bc9e8deaf More removals of Settings.instance 2020-08-09 01:59:07 +02:00
2ef2ccdf23 Editors: Allow the title to be edited even when YAML is disabled 2020-07-29 16:27:15 +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
352879b965 Add support for rendering wiki links
This way clicking on a wiki link also opens the corresponding note, if
it exists.
2020-07-09 01:02:32 +02:00
7506e3990d Detect all kinds of local links
Not only links which start with ./

We also try to guess with the .md or .txt extension if the file is
present.

Fixes #173
2020-07-07 23:27:44 +02:00
a86843a2b5 Fix note link navigation
Fixes #173
2020-07-06 16:58:12 +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
a22f5ae758 Fix new imagebuilders arguments 2020-06-19 12:49:14 +02:00
3be7a7d350 Fix opening on relative notes when clicking on a link 2020-06-19 12:39:43 +02:00
ede78f6019 Change <hr> width
5px seems to much. It now looks similar to how GitHub renders it.

Fixes #167
2020-06-12 13:05:46 +02:00
01006ddaa1 NoteBacklinks: Do not show pro overlay if no backlinks present 2020-06-10 16:24:22 +02:00
4fc7c18e98 Let the rendered markdown be selectable 2020-06-10 16:09:16 +02:00
e71ff5d2c0 Make NoteBacklinks a pro feature 2020-06-10 15:49:47 +02:00
97812e1501 Convert more prints to logs
This way they will show up in the LogViewer
2020-06-10 13:25:22 +02:00
d3fb2b7119 Try to make the backlinks section prettier
I'm not totally convinced that it should be here.
2020-05-26 18:05:50 +02:00
36f31e06bb Move NoteBacklinks Widget to its own file 2020-05-26 17:07:57 +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
b2d0cf44ab Stop using deprecated TextStyle properties 2020-05-08 10:55:00 +02:00
81eb605e98 MarkdownViewer: Use EditorScrollView
This way we don't show that annoying animation, and we now occupy the
entire available width. Otheriwse if you had text which was required
scrolling, but only had 1 word in each line, then you couldn't scroll by
dragging on the empty area as the widget didn't occupy that space.
2020-05-06 14:27:49 +02:00
d81041802a MarkdownView: Use CachedNetworkImage
This is the simplest way I could find of showing a placeholder and
loading screen while the image was downloading. I'm not sure if I want
to cache the images locally.

Also, this adds lots of dependencies, which I'm not too comfortable
with.
2020-04-17 10:27:21 +02:00
dbeb1cdbe5 Remove hero from note_viewer
We now show the NoteEditor directly, so this hero doesn't really do
much.
2020-04-14 18:27:16 +02:00
9e60a74c19 Allow opening relative links while are notes 2020-04-02 19:34:54 +02:00
46590aff48 Markdown: Show images
At least show existing images. The path needs to be relative

Related to #10
2020-03-31 14:11:01 +02:00
e1a06a439c NoteViewer: Simplify code 2020-02-28 12:42:37 +01:00
dae3d1aec9 Remove the FAB
Fixes #58

I've tried adding a black space under the FAB, but that just reduces the
available vertical space while typing. This does reduce the usability
for small notes, as clicking on the FAB is much easier than clicking on
top-right back button or clicking the back button twice on Android.
2020-02-28 12:34:56 +01:00
a49876e3ee Remove the title editor if it cannot be stored
It just makes it confusing for the user otherwise.
2020-02-19 23:00:52 +01:00
d128fe61a8 MarkdownEditor: preview - Show the title even if it is empty
This way jumping between preview and editing isn't jarring as the text
doesn't need to move at all.
2020-02-13 17:19:12 +01:00
6d38377144 Split NoteViewer into its own file 2020-01-28 16:02:54 +01:00