f75e119995
Make Settings take the folderName as a parameter
2020-10-23 02:29:48 +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
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
1a74955e99
Improve inline tags regexp
...
Fixes #265
2020-10-05 11:43:52 +02:00
4be9520ae6
LinkResolver: Add another test
2020-09-26 19:25:07 +02:00
b72e4719d2
Remove another case of the Settings singleton
2020-09-25 01:05:17 +02:00
289182b12e
Fix Parent relative links not working
...
Fixes #256
2020-09-24 16:46:24 +02:00
365afb4abc
Add leading zero to minutes < 10
...
Fixes #247
2020-09-15 01:29:22 +02:00
f82e239985
Try to add support for link-references and chicken out
...
This is going to be far far more difficult than I thought and will
require a much larger refactor.
2020-09-14 22:11:37 +02:00
a28fc308c0
Resolve "normal links" without a file extension
...
This is against the markdown spec, but the foam documentaiton seem to
have this in a number of places.
2020-09-14 17:41:53 +02:00
d2326658d4
LinkResolver: Make sure wiki link objects are properly resolved
...
There was no test for this, so it wasn't caught when I accidently broke
it today morning.
2020-09-14 17:39:20 +02:00
c94ff85804
Overhaul Link parsing
...
We were mixing up header links with wiki links and the alt text. It was
a bit messy. We currently do not support linking to a particular part of
a note. Nor do we support wiki links as link references.
Fixes APP-A0
2020-09-14 12:20:15 +02:00
a599be89fe
FlattenedNotesFolder: Make title non optional
...
Also translate the title string.
2020-09-13 20:59:53 +02:00
dc2c81648e
Bug: Typing '---' + Enter creates a new list
2020-09-08 23:08:14 +02:00
87327f886e
Remove extra print statements
2020-09-05 13:11:16 +02:00
70b638dbe9
Github/GitLab test: Try to guess where the test data is
...
The env in the CI seems to be a bit different
2020-09-05 13:05:01 +02:00
3bc459c73a
CI: Print the working directory before running the tests
...
The test data doesn't seem to be picked up.
2020-09-05 12:43:26 +02:00
6b741bb4ea
MarkdownBugTest: Make it more self contained
...
It does result in some code duplication, but hopefully this test will go
upstream.
2020-09-05 12:39:48 +02:00
0b9b34d39a
Add a test for the markdown bug
...
This way it is easier to know when it has been fixed.
2020-09-05 11:53:31 +02:00
9e045519bb
Add tests for GitHub & GitLab apis for fetching the list of repos
2020-09-05 11:18:54 +02:00
ddf7345b0d
MdYamlCodec: Load maps properly
...
Our MdYamlCodec runs inside an isolate, and send the result back. The
YamlMap data structure doesn't seem to be serializable over an isolate
and gives us an error. Therefore, we should make sure it is a normal
map.
2020-09-03 14:03:49 +02:00
6e289a6b6e
Note: Add an API to get the images from a note
...
This will be used in the future to display the images in the grid/card
view.
2020-09-03 12:26:45 +02:00
1f071771ca
Do not allow empty inline tags
2020-09-02 17:38:43 +02:00
25f516c15c
Add the scaffolding for automatically adding Wiki Links
...
The idea is that on save a Note, terms which have already been used
before as Wiki Links should automatically be converted into Wiki Links.
2020-09-02 17:02:13 +02:00
9ec33842bc
MarkdownToolbar: Remove old block tag
...
If a text starts with '# ' and we click on the '- ' button, it should
remove the old tag '#' and replace it with '- '. Before this it would
have done something like this '- #'
2020-09-02 00:00:53 +02:00
fefe354e83
MarkdownToolbar: Navigate across multiple lines properly
2020-09-01 23:32:14 +02:00
0b4867da10
LinksLoader: Ignore non local links
...
In Reference links
Fixes APP-9M
2020-08-31 08:55:27 +02:00
a8af8d795e
MdYamlDoc: Add a very basic reverse implementation
...
A user requested that the YAML header be present at the bottom. I
thought this would be quite simple, but there are lots of edge cases
which will need to be solved.
Related to #223
2020-08-30 15:49:08 +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
36fa1e3f80
InlineTags: Test for tags with -
2020-08-21 11:42:54 +02:00
6078f7f7ef
InlineTags: Add a test for non-ascii words
2020-08-21 11:41:53 +02:00
cc9d115762
InlineTags: Handle case of #a#b as two tags
2020-08-21 11:12:08 +02:00
2668d14510
Replace test with simpler test
...
Also lets not auto convert old notes title format.
2020-08-19 11:40:50 +02:00
ada656c675
Do not write the title as h1 if it is in the yaml header
...
In general, we try to follow the conventions in the note parsed over
whatever the default config.
Related to #214
2020-08-19 11:31:16 +02:00
8f2bb557da
YAML tags: Let it be a string seperated by spaces and have a #
...
In general we try to follow the same format as specified in the input
note.
2020-08-19 10:41:52 +02:00
9380f3cc06
Allow YAML tags to be a string
2020-08-19 10:12:07 +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
1e0fdb9f06
Fix WikiLink resolution
...
I apparently wasn't following exactly what Obsidian was doing. This
algorithm is getting a bit complex and should be documented, also now
I'm not sure how other apps are doing it, and maybe I should have
specific link resolvers per 'app'.
2020-08-16 15:05:16 +02:00
d5ce4e1110
FlattenedNotesFolderTest: Fix it
...
Occasionally the random number generator would generate the same number
and we wouldn't check if the file existed.
Also, we were accidentally creating all the notes in the root dir, so
this test was a bit useless.
2020-08-15 13:22:05 +02:00
850e9c7826
MarkdownToolBar: Make bold work with newlines
2020-08-15 12:36:13 +02:00
22985ea500
MarkdownToolbar: Implement navigation between words
2020-08-15 11:58:39 +02:00
745d59e570
MarkdownToolbar: Add buttons to navigate between words
2020-08-14 22:00:34 +02:00
440ee96639
MarkdownToolbar: Bold: Add more tests
2020-08-14 21:21:08 +02:00
c6d5ebc0b2
MarkdownToolbar: Add tests for surrounding the current word with **
2020-08-14 21:17:29 +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
2fcdfa0d6c
Note Backlinks: Use the linkResolver
...
The backlinks should use the same algorithm for determining the links as
is used when clicking on a link.
2020-08-14 16:44:54 +02:00
bf97887e10
Fix relative Markdown links
...
While implementing Wiki Links, I seem to have accidentally broken them.
2020-08-14 16:14:00 +02:00
c38f823ae3
MarkdownToolBar: Test h1 removal
...
And fix cursor position after removing of the header
2020-08-13 01:14:06 +02:00
8668b88a95
MarkdownToolBar: Test h1 removal
2020-08-13 00:54:24 +02:00
ed08672ee2
Simplify tests
2020-08-13 00:51:54 +02:00