kusold / todoist-habitrpg

One way sync from Todoist -> HabitRPG
120 stars 14 forks source link

Obfuscate or don't sync tasks with certain labels #27

Open mstave opened 9 years ago

mstave commented 9 years ago

I don't want work tasks in habitrpg.

I put in a kludge in my copy of habitSync.prototype.syncItemsToHabitRpg under your check for the labels length:

var myworkID = 136886;
for(var i in item.todoist.labels) {
   if (item.todoist.lables[i] == myworkID) {
      task.text = "work [" + task.text[0] + ".." + task.text[task.text.length -1] + "]";
   }
}

So for me, tasks with label of @work such as "Foo the bar" become "work [F..r]" Presumably would be nicer to have a CLI param to specify the text of the label, but this got me unblocked.

crookedneighbor commented 9 years ago

This would be another good candidate for a config.json file. Do not sync labels.

kusold commented 9 years ago

:100: agree. I think this use case creates the strongest use case for a config file.

cmmata commented 9 years ago

Would be great to not sync specific labels / projects. For example I have a project for all blog posts I have to read, and I don't want to sync it anywhere. Would it be possible? Thanks