Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend ShareActivity to wrap captured link into org link if possible #323

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

lingnand
Copy link
Contributor

This looks at the incoming intent data and wraps a link with title information into an org link.

@amberin
Copy link
Member

amberin commented Sep 15, 2024

Nice!

Copy link
Member

@amberin amberin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lingnand I have made a PR to your branch suggesting a different way to recognize URLs: lingnand#1

@amberin
Copy link
Member

amberin commented Jan 9, 2025

@lingnand We should switch to java.net.URI, as you suggested elsewhere (and catch URISyntaxException instead).

amberin and others added 2 commits January 9, 2025 23:31
After discussion with @lingnand:

>>> Good idea to use proper class to parse. Can we use java.net.URI instead? A lot of org links are not web URL but URI e.g. file:a/b/c

>> Sure. I was thinking that one may not want to handle all types of URIs like this. But if you can imagine a use case, then let's do it.

> I use an Email app that generate links to emails, which fall into this category (basically, Android app links are this format)
@amberin
Copy link
Member

amberin commented Jan 13, 2025

Thank you for your first contribution, @lingnand!

Edit: Sorry, I mean second contribution! 😃

@amberin amberin merged commit 61ac2da into orgzly-revived:master Jan 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants