-
-
Notifications
You must be signed in to change notification settings - Fork 36
Feature: shortcuts #222
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
Feature: shortcuts #222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested it yet, will review it tomorrow furthermore. Looking forward to it! Just wanted to request some minor changes for now that I've noticed briefly.
[ci skip] Co-authored-by: Tobias Hagemann <[email protected]>
[ci skip] Co-authored-by: Tobias Hagemann <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Y
Do you have an Shortcut example, how it works? I don't know the correct parameter in path for Get Folder. |
We've written a guide here: https://docs.cryptomator.org/en/1.6/ios/shortcuts-guide/ The link is also available in the settings of Cryptomator. Hope this helps! |
Perfect thank 👍 |
Are there any known issues while uploading pictures with shortcuts? The date (modified and created) of uploaded pictures is set to "upload date"? |
The only known issue is also documented in the Shortcuts Guide. Uploading a large amount of photos at once is very slow so it's better to set a limit. I wouldn't have considered the modification date to be an issue but you can certainly open a new one. I would even say that this is a feature request because the current feature is working as intended. |
I want to give an overwhelming thanks to your team for doing this. Adding shortcuts support allows a lot of customizations for different workflows. So far this has been working great for me. I even have an automation where it runs the shortcut anytime I plug in my charger. I was also able to create my own automation shortcut that was able to transfer my files over from Google Drive and into Cryptomator automatically. I have been using the current actions but they require your vault to be unlocked before hand. It would be useful to have Shortcut actions for the following.
I just created a feature request for this #229 . Keep up the great work this is a killer app for Apple users. |
Adds the "Get Folder" and "Save File" intents. This allows the user to create various shortcuts / automations in the Shortcuts app, including an automatic photo upload.
The "Get Folder" intent is used as the basis for the "Save File" intent, as this means that a new online check of the specified parent folder does not have to be executed multiple times. This is because at least one online enumeration is required to ensure that this folder is in the FileProviderExtension database. Since the subsequent call of
importDocument(at:toParentItemIdentifier)
requires the parentItemIdentifier, i.e. the identifier of the specified folder.The Save File intent calls
importDocument(at:toParentItemIdentifier)
via XPC for the selected vault and is considered successful once the file has been imported locally and the upload has been scheduled. Thus, this behaves analogously to manually importing a file via the Files app. This is important to ensure a fast runtime of the single intent, as they have a limited execution time.