cherri icon indicating copy to clipboard operation
cherri copied to clipboard

(12/27) Calendar Actions

Open electrikmilk opened this issue 2 years ago • 5 comments

Add support for actions in the calendar category of standard Shortcuts actions.

electrikmilk avatar Feb 20 '23 00:02 electrikmilk

Hey @electrikmilk . This project is just what I was looking for. How could I contribute? I would like to add some remiders actions as a starting point (add reminder, set as completed etc). Is there any reference to what needs to be done?

doron-cohen avatar May 20 '24 19:05 doron-cohen

Hey @electrikmilk . This project is just what I was looking for. How could I contribute? I would like to add some remiders actions as a starting point (add reminder, set as completed etc). Is there any reference to what needs to be done?

Hey @doron-cohen 👋

Thanks for your interest in the project. Glad to hear it!

There is documentation on the actions currently implemented here: https://cherrilang.org/language/actions.html or you can check actions_std.go.

Some (possibly outdated, apologies! I plan to update this soon.) documentation on how to implement actions: https://cherrilang.org/compiler/actions.html You should be able to garner the rest from looking at how other actions are implemented.

I use this Shortcut to get the Property List (.plist) file using this Shortcut providing the iCloud Link to the Shortcut containing the actions I'd like to implement. https://routinehub.co/shortcut/13252/ (Tip: Make sure that for each action you make a Shortcut to implement, you have a reference for the default, and another one with every option selected).

From there you can view it in a plist viewer and implement it in actions_std.go.

I hope this helps!

electrikmilk avatar May 22 '24 21:05 electrikmilk

Hey, is there a list of what actions are implemented or not? This issue says 3 are implemented and the docs say 12.

All of them seem to be in actions_std.go, but at the very least Get Alarms looks empty:

NoelTautges avatar May 27 '24 22:05 NoelTautges

Hey, is there a list of what actions are implemented or not? This issue says 3 are implemented and the docs say 12.

All of them seem to be in actions_std.go, but at the very least Get Alarms looks empty:

Apologies, I've updated the count in the issue title. No, there is no official list of missing actions.

The actions currently implemented are listed in the documentation and actions_std.go in each of the category pages listed on the actions page.

I usually check the Shortcuts app for actions that are not yet implemented for each category of actions. Generally, I'm going by the categories listed when selecting to view all actions to categorize them.

While Get Alarms appears to be empty, the app identifier is all that is needed to get a basic list of alarms when using this action. Later it will need to be refactored to be the Filter Alarms action, but I'm not sure how to go about implementing the filters in Cherri right now.

electrikmilk avatar May 28 '24 03:05 electrikmilk

The total count will need to be updated to reflect the newer Clock app actions added to Shortcuts since I totaled it.

electrikmilk avatar May 28 '24 03:05 electrikmilk