13 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
92e73c414d Move core Note classes into a separate file
I'm trying to get ride of this huge 'Note' class, and have it be quite
dumb. The idea is that we'll have separate Note subclasses - TxtNote,
MdNote, etc
2022-04-24 13:09:14 +02:00
65e111d89e Image: Catch more errors 2022-01-26 10:43:08 +01:00
3a4606b836 Image: Handle FS exceptions 2022-01-25 14:23:37 +01:00
6e75ce434c Image: Insert markup at cursor position
Also optimize this a bit + add tests
2022-01-25 14:15:47 +01:00
957f33a879 Fix image handling 2021-12-22 21:26: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
a8c2a4f84a Make the default image name the md5 hash
It's better than the current even more random name.

Related to #479
2021-09-16 22:02:06 +02:00
443babd0b1 Fix image links being broken 2021-09-16 14:41:08 +02:00
e26539f590 Make member private 2021-09-16 14:34:59 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
5ea80fb617 Note: Move Image code to its own class
The Note class is way way too huge and has too many responsabilities. I
would like the Note class to be very small and immutable.
2021-08-31 12:30:47 +02:00