mpcjanssen / simpletask-android

GNU General Public License v3.0
543 stars 125 forks source link

FR : pickup which calendar to push reminders #899

Open pyluyten opened 6 years ago

pyluyten commented 6 years ago

( Please note simpletask is a superb app )

seems we can push reminders to a "simpletask" local calendar, but cannot choose the calendar. I looked at options but code looks like this, too

https://github.com/mpcjanssen/simpletask-android/blob/master/app/src/main/java/nl/mpcjanssen/simpletask/CalendarSync.kt

object CalendarSync {
    private val log: Logger

    private val ACCOUNT_NAME = "Simpletask Calendar"
    private val ACCOUNT_TYPE = CalendarContract.ACCOUNT_TYPE_LOCAL

Use case : yes i want notifications only on my smartphone, still a full calendar on the PC is useful in order to have a complete vision of timeline. Maybe there are other use case like several people having their own todo.txt but sharing the resulting calencar.

vojtechkral commented 6 years ago

This was done in the original implementation due to technical reasons. With the current implementation, it would be possible to use a different calendar if we can reliably tell apart Simpletask-generated events from others. I wouldn't like risking Simpletask deleting other events. Basically it boils down to whether calendar syncers reliably transfer CUSTOM_APP_PACKAGE - if so, this coul be done. Personaly I don't sync calendars so I'm not sure how to check for this.

pyluyten commented 6 years ago

Ok i think i understand. If ever i can test something of course i can have a look (using davDroid to push local calendar to ownCloud). But we might face different behaviours with diferent calendar syncers?

If we look at DavDroid, https://www.davdroid.com/manual/supported-event-fields/ they explain some bits but i do not think it answers your question.

If i can test something please tell me.

Another pov is to reject my feature request and to say the right way is to generate iCal from todo.txt on the PC, too.

(eg https://addons.mozilla.org/en-US/thunderbird/addon/todotxt-extension/ )