anufrievroman / calcure

Modern TUI calendar and task manager with minimal and customizable UI.
https://anufrievroman.gitbook.io/calcure
MIT License
1.55k stars 44 forks source link

Tasks imported from TaskWarrior contain backslash #76

Closed jose1711 closed 11 months ago

jose1711 commented 11 months ago

It's probably safer to use taskwarrior bindings for Python.

import taskw
taskw = taskw.TaskWarrior()
tasks = filter_tasks({'status': 'pending'})
[x['description'] for x in a.filter_tasks({'status': 'pending'})][-1]  # 'delete /foo/bar'
anufrievroman commented 11 months ago

Hmm, interesting, I didn't know there's a library to interact with task warrior.

anufrievroman commented 11 months ago

Fixed this with 4fbd301d456efb591957b085a3dc9d4934e59757 where I implemented import via taskw library. It's actually a pretty cool library, I think in future we may consider full sync with taskwarrior.