206 Commits

Author SHA1 Message Date
4632dc40b9 Split NoteEditor types into its own file
NoteEditor still hasn't been migrated to null safety
2021-05-25 10:16:59 +02:00
3b5ff6c9df Core: Finish null safety migration 2021-05-25 09:54:19 +02:00
836d7dc216 EditorHeuristics: Null safety 2021-05-25 09:36:46 +02:00
862ac6f137 CheckList: NullSafety 2021-05-19 12:45:26 +02:00
9493dba851 Tags AutoCompletion: Null Safety++ 2021-05-19 12:39:12 +02:00
9b4a67ba08 LinkResolver: Null Safety++ 2021-05-19 12:17:57 +02:00
96c2809d3e Migrate most of the tests to null safety 2021-05-19 12:09:45 +02:00
5a40d35ec8 apis: port to null safety 2021-05-18 10:48:33 +02:00
ec600198a3 Port a few tests to null safety 2021-05-17 16:43:54 +02:00
c756f73818 Move test 2021-05-17 14:38:37 +02:00
862c594034 Logger: Add a test
Fixes stack parsing bug
2021-05-17 14:35:50 +02:00
e5bedaaa08 Add serialization for Plausible Events 2021-04-26 09:06:51 +02:00
c7737ffd13 Port LinksLoader to null safety
With this I'm not accepting any of the Link's field to be an empty
string. In that case it's better for it to be null, as the compiler will
force me to deal with an empty value.
2021-04-15 17:22:15 +02:00
8f887b0112 Add stupid old dart version comment
It's importing files which still haven't been converted
2021-04-14 18:53: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
d2d9504dc9 Make sure all notes end with a \n
Fixes #383
2021-03-26 10:09:15 +01:00
4b52e5061a Cleanup code duplication 2021-03-18 15:05:53 +01:00
860dd11aa2 Fix test
SettingsTitle.InFileName is temporarily disabled untill it is full
implemented.
2021-02-16 00:15:51 +01:00
d28e13908a Revert "MdYamlDoc: Add a very basic reverse implementation"
This reverts commit a8af8d795eafce8d9ed7f4be2ee2cc47d8f945b3.

This complicates everything too much.
2021-02-12 15:58:16 +01:00
b7e274c937 Add FileName option in Note title settings
This doesn't do anything right now. It just shows the option.
2021-02-12 15:32:10 +01:00
5280917e7a Minor refactor 2021-02-09 12:00:52 +01:00
b9d765f726 Rename EditorState to TextEditorState
Also remove the EditorHeuristicsResult class. This way all of these are
being combined together.
2021-02-02 16:08:15 +01:00
be44cc05fe Move autocompletion to inside the editors 2021-02-02 15:57:01 +01:00
df6cba7098 Tags AutoCompleter: More Tests 2021-01-28 15:20:04 +01:00
79207d9422 AutoCompletion: Add tests for tags autocompletion
Also move the file. I tried using the same code base for both the types
of auto-completion and this has resulted in a huge mess. It's best to
keep the logic completely seperate for the two.
2021-01-28 14:57:04 +01:00
07947d637a Add some tests for autocompletion
All of these tests fail, I'm just trying to get an idea of what all I'll
need to implement. And what the interface should look like.
2021-01-27 21:41:58 +01:00
eb2f4519a6 Make sorting case insensitive 2021-01-12 15:49:44 +01:00
e023bc7d45 Remove RSA keypair test
The dart rsa key gen doesn't seem to work with all installs, and this
test is very flakey anyway.
2020-12-27 11:05:15 +01:00
f821fc73e1 SSH Private Key: Try formats supported by ssh_key 2020-11-15 00:49:42 +01:00
5571fdb65e Use time.dart
I'm sacrificing const code for readability. So maybe I'll lose a bit of
performance, but this is so much easier to read.
2020-11-10 19:07:09 +01:00
3c8e36aba6 Relicense inline tags code to MIT 2020-11-09 18:35:27 +01:00
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