Now, many more apps can share directly into Trilium Sender.
For example, here's me sharing a link to a discussion from a cool photo on reddit:
The Add Note UI is pre-populated with the contents of the message (usually just a link) and, in this case, the title of the link.
In the event that an app doesn't provide a note title via the EXTRA_SUBJECT metadata, we'll try to look up the app's name for a default note title. Twitter, for example:
Here, it hasn't provided EXTRA_SUBJECT, so we craft this default title:
It is possible for this app name lookup to fail. In that case, we would fall back to the note title "Shared from Android".
Drive-by: update a couple of packages.
As before, if you find this valuable, please consider adding the hacktoberfest-accepted label to this PR. :)
Now, many more apps can share directly into Trilium Sender.
For example, here's me sharing a link to a discussion from a cool photo on reddit:
The Add Note UI is pre-populated with the contents of the message (usually just a link) and, in this case, the title of the link.
In the event that an app doesn't provide a note title via the EXTRA_SUBJECT metadata, we'll try to look up the app's name for a default note title. Twitter, for example:
Here, it hasn't provided EXTRA_SUBJECT, so we craft this default title:
It is possible for this app name lookup to fail. In that case, we would fall back to the note title "Shared from Android".
Drive-by: update a couple of packages.
As before, if you find this valuable, please consider adding the
hacktoberfest-accepted
label to this PR. :)Thanks for your review!