zadam / trilium-sender

Simple android application for sending images and notes to Trilium
GNU General Public License v3.0
80 stars 31 forks source link

Add Note UI will now receive SEND text/plain intents. #11

Closed elementc closed 4 years ago

elementc commented 4 years ago

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!

zadam commented 4 years ago

Thanks for the contribution! Label added ...