Skip to content
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

Tasks imported from TaskWarrior contain backslash #76

Closed
jose1711 opened this issue Nov 20, 2023 · 2 comments
Closed

Tasks imported from TaskWarrior contain backslash #76

jose1711 opened this issue Nov 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jose1711
Copy link
Contributor

  • add task via taskwarrior
    task add 'delete /foo/bar'
  • press W in calcure
  • task is displayed as delete \/foo\/bar

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
Copy link
Owner

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

@anufrievroman anufrievroman added the bug Something isn't working label Nov 22, 2023
@anufrievroman
Copy link
Owner

Fixed this with 4fbd301 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants