mpcjanssen/simpletask-android

Can't open OneDrive todo.txt file saved locally

Opened this issue · 3 comments

KBMD commented

I love this app and I've used it for years, but recently switched to OneDrive and I can't use it at all. I have my todo.txt file saved locally, according to OneDrive, but I can't open it from Simple Task (can't find it on the file browser). In the OneDrive app, I can select a program to open the file with, but Simple Task is not on the list.
I imagine someone else has tried to use Simple Task with OneDrive, and I would appreciate any hints.

@KMBD the only supported way that I know of using onedrive for Simpletask is using a sync application such as FolderSync to sync the OneDrive file to an accessible folder.

Opening with Simpletask an application from OneDrive would probably not sync back any changes you make so I don't think that's a real alternative.

The most reliable approach would be to make a version that syncs directly with OneDrive, but that is quite a bit of work.

KBMD commented

Thank you for the quick and direct answer!

Wouldn't a simpler solution be to register Simpletask with Android as an application that can open .txt files? I can use other apps to work with locally cached OneDrive files by browsing them in the OneDrive app, if the app I want to use on the file is listed as an "open with" option for the given file type. That works fine & syncs correctly.

In the meantime, I'll check whether I can sync the file to a local directory.

@KBMD one of the challenges with open with is that you get access to an URI instead of the file itself. But I did have some experience with it in the SAF experiment. I can see if adding Simpletask as a txt handler would work.
I am fairly sure that any remote updates in OneDrive would be ignored however and possibly overwritten.

Another option would be to share the todo.txt from OneDrive with simpletask. That way the contents of the file will be put in Simpletask.