-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Any plans to support shared projects? #247
Comments
@shanness thank you! I can't speak for the project, but I can talk about what I'm doing and planning. I'm using this todoist /lib and filter code for my project tuidoist. Currently I'm using an ejected copy in that project, but I'll probably switch back to consuming sachaos/todoist (or my fork) as a library when I get to a more stable position. The big piece in progress is the extend/filter-language branch that you found. The plan is to bring it up to what the filter language is described as on the filter help page. This will include the sharing features: It will hit a PR at some point, but it is not yet ready. Right now, I'm working off a new branch from the one in #241, so hopefully that lands .. first. The work I'm doing ought to close #191, #179, #164, #155 and #83. To be clear, it doesn't, yet, but that's the scope I'm aiming at. |
Hey @psethwick and @sachaos , Sounds pretty good! But perhaps it's worth using the REST tasks API for the Taking the inspiration from the great Obsidian plugin obsidian-todoist-plugin Here's a pretty advanced one I tested it with that is busted in this cli one? $ curl --silent -H "Authorization: Bearer <token>" --data-urlencode \
filter='(today | overdue) & ##Inbox & (!assigned to: others) & (!@me)'
-G 'https://api.todoist.com/rest/v2/tasks' | jq -r '.[] | [.id, .content] | @tsv'
7215998221 ApiFuse - where is it at
7255942445 Install obsidian-cli
7255968994 Get hassio back up
7256841158 Recover some space on /big
7256841817 Fix leaking hot tap in laundry These are the fields you get from it jq '.[1]|keys'
[
"assignee_id",
"assigner_id",
"comment_count",
"content",
"created_at",
"creator_id",
"description",
"due",
"id",
"is_completed",
"labels",
"order",
"parent_id",
"priority",
"project_id",
"section_id",
"url"
] |
thank you that filter makes for a good test: func TestComplexFilter(t *testing.T) {
timeNow := time.Date(2017, time.January, 2, 18, 0, 0, 0, testTimeZone)
setNow(timeNow)
assert.Equal(
t,
BoolInfixOpExpr{
left: BoolInfixOpExpr{
left: BoolInfixOpExpr{
left: BoolInfixOpExpr{
left: DateExpr{
operation: DUE_ON,
datetime: time.Date(2017, time.January, 2, 0, 0, 0, 0, testTimeZone),
allDay: true,
},
operator: '|',
right: DateExpr{
operation: DUE_BEFORE,
datetime: timeNow,
allDay: false,
},
},
operator: '&',
right: ProjectExpr{
isAll: true,
name: "Inbox",
}},
operator: '&',
right: NotOpExpr{
expr: PersonExpr{person: "others"},
}}, operator: '&',
right: NotOpExpr{expr: LabelExpr{name: "me"}},
},
Filter("(today | overdue) & ##Inbox & (!assigned to: others) & (!@me)"),
)
} Passes on my branch! I think I have 99% of the parsing sorted, next is evaluating all the new stuff I have parsing. I'm moving pretty quickly, this won't be months and might barely be weeks at current pace. For my purposes, (and I think this cli as well), I think running filter locally is worth it. It is so much faster than http calls. |
Nice one mate! From my testing the API only took 0.3 seconds (for the above filter), and the same for But yeah, the cached one in todoist-cli only took And sure, feel free to rope me in for testing. I don't know go (but know python, java, scala and bash well). But that said, I found this repos go code easy to read |
@shanness you can test this stuff in my fork if you want! I've shaken some of the bugs out, but in particular I don't really use the sharing features, so very possible I've missed some there. |
I've been using this for a few years, but have just got a co-worker onto it, and it's pretty broken without assigned handling and displaying.
i.e.
todoist today
has stuff that isn't mine, and no way to see that visually, nor filter it out.Did lots of searching first (although can't seem to search Very surprised that no one else seems to have posted about this problem (although I found this fork and branch, which isn't showing up in searches (
repo:psethwick/todoist AssignedExpr
)).. Anyone know how to get around that? I only found it by manually looking at every branch on that fork.. I'll keep an eye on it (commits in the last 24 hrs, thanks @psethwick)Seems it'll get more pressing with the new push for todoist workspaces.
The text was updated successfully, but these errors were encountered: