22 Commits

Author SHA1 Message Date
657721adc6 Update dart-git and stop using the Result class
Instead we're going to move back to standard exceptions.

Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code

I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01: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
92515f9924 Allow multiple inline tags in the same line
Fixes #268
2021-09-08 15:43:55 +02:00
82504c8c2b Sanitize inline tags
I'm not doing this for manually added tags. Over there the user has full
control of the keyboard.
2021-09-08 10:51:14 +02:00
941f5f17c5 Use RegExp.escape instead of doing it manually
I didn't know this existed!
2021-09-07 16:28:43 +02:00
a181cd9e20 Add a markdown TextVisitor class
This is going to be used to parse the tags from a markdown document
while ignoring the text inside a code block
2021-07-31 17:18:46 +02:00
3b5ff6c9df Core: Finish null safety migration 2021-05-25 09:54:19 +02:00
5e5de203da NullSafety++ 2021-05-17 16:58:51 +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
3c8e36aba6 Relicense inline tags code to MIT 2020-11-09 18:35:27 +01:00
93fd99148f Experiment with the concept of Transformers 2020-11-07 15:52:33 +01:00
1a74955e99 Improve inline tags regexp
Fixes #265
2020-10-05 11:43:52 +02:00
56e5c10696 Add scaffolding to make emoji parsing optional 2020-09-08 23:33:48 +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
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
cc9d115762 InlineTags: Handle case of #a#b as two tags 2020-08-21 11:12:08 +02:00
01f1b8481f Add scaffolding for an inline tag processor
This is just a simple test to extract the inline tags, it hasn't been
hooked up to anything.

Related to #44
2020-08-11 13:58:52 +02:00