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

Add a public receiver for Tasker, Automate, etc. #112

Merged
merged 13 commits into from
Dec 2, 2023

Conversation

NatKarmios
Copy link
Contributor

@NatKarmios NatKarmios commented Dec 2, 2023

This is a recreation of my pull request for the original respository, orgzly/orgzly-android#878.

I'm a big fan of Automate, and I (along with many others, it seems) would love to be able to use it - or Tasker, etc. - with Orgzly.

In the spirit of being the change I want to see the world, I've got to work on implementing a publicly-accessible intent receiver to this end :)

Just a few issues relevant to this (most of which are more or less already implemented):

These "endpoints" (i.e. actions) have currently been implemented, and tested to be working on an emulated Pixel 4 (edit: and on my S21 Ultra, on which I have been daily driving these changes for the past 2 years 🙃):

  • GET_BOOKS
  • GET_SAVED_SEARCHES
  • GET_NOTE
  • ADD_NOTE
  • EDIT_NOTE
  • REFILE_NOTE / REFILE_NOTES
  • MOVE_NOTE / MOVE_NOTES
  • DELETE_NOTE / DELETE_NOTES
  • ADD_SAVED_SEARCH
  • EDIT_SAVED_SEARCH
  • MOVE_SAVED_SEARCH
  • DELETE_SAVED_SEARCH
  • SEARCH (runs the same kind of query a saved search would use, and returns the result)
  • GET_WIDETS
  • SET_WIDGET (sets the saved search that a widget displays)

Where relevant, a note can be selected by:

  • Its note ID from Orgzly's internal database - accessible via GET_BOOKS, SEARCH, etc.
  • The "path" to the note
  • An Orgzly search query; errors if the query yields more than one note (though perhaps this should be configurable)

@alensiljak
Copy link
Contributor

Thank you for the contribution. While I do not currently use task automation, I find this to be a good addition. Intents can be sent from other apps or Termux.
This opens up some extensibility options.

@NatKarmios
Copy link
Contributor Author

Perhaps it should be a separate issue, but this might be good time to fork the documentation repo alongside this one.

I'm more than happy to write up documentation on how to use this addition 🙂

@amberin
Copy link
Member

amberin commented Dec 2, 2023

Perhaps it should be a separate issue, but this might be good time to fork the documentation repo alongside this one.

I'm more than happy to write up documentation on how to use this addition 🙂

That sounds terrific!

I will look into creating a fork in this organization, and ping you when it's done.

@amberin amberin self-requested a review December 2, 2023 22:46
@amberin amberin merged commit 19753f3 into orgzly-revived:master Dec 2, 2023
1 check passed
@amberin
Copy link
Member

amberin commented Dec 2, 2023

@NatKarmios The forked documentation repo can be found here: https://github.com/orgzly-revived/documentation. I haven't touched anything yet -- feel free to open any kind of PRs.

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.

None yet

3 participants