You are not logged in.

#1 2013-07-08 17:00:23

theseus
Member
Registered: 2011-07-20
Posts: 19

taskwarrior and zsh completion makes terminal crash

Hi all,


I had been using taskwarrior a while back. The Tab-completion was working fine with zsh, meaning that if I was typing

$ task add Something project:<TAB><TAB>

I was getting a list of all the projects already listed in my task files.

Now, if I do that, my terminal crashes (virtual or tty).

Does anyone have the same behaviour or has an idea how I could debug this?

Thanks!

Offline

#2 2013-07-30 11:57:04

hamhut1066
Member
From: Kenya
Registered: 2013-07-29
Posts: 10

Re: taskwarrior and zsh completion makes terminal crash

happening to me too,
crashing if I double tab on anything though.
Am using zsh so am gonna look at _task, see if I can see anything.

Edit:
Seems to be working with:

task (+ | - | project: )

anything else still crashing sad

Last edited by hamhut1066 (2013-07-30 12:20:21)


Arch Linux | i3 | mpd | vim
`Everything to those who wait`

Offline

#3 2013-08-02 11:48:01

hamhut1066
Member
From: Kenya
Registered: 2013-07-29
Posts: 10

Re: taskwarrior and zsh completion makes terminal crash

Made a hack and slash solution. May add to it if I need extra functionality...

#compdef task

_task () {
    _arguments -s \
        '::ids:($(task -ids))'\
        ':add:(add)'\
        '::commands:(start done modify)'\
        "::tags:($(task _tags | sed 's/.*/\+&/'))"\
        ":projects:($(task _projects | sed 's/.*/projects:&/'))"
}

I might try and do this slightly better when I have reliable internet and some time...
Hope this helps.


Arch Linux | i3 | mpd | vim
`Everything to those who wait`

Offline

#4 2013-09-21 17:39:13

DuncanvR
Member
Registered: 2012-09-05
Posts: 2

Re: taskwarrior and zsh completion makes terminal crash

I had the same issue, on multiple machines.
The only time I could get it to work was by removing the task database, i.e. `rm -R ~/.task`, and re-adding all my tasks. However, as soon as I exited my shell and opened a new one, it was broken again.
In the end, installing the latest version of zsh-git made it all work, so it seems to be solved upstream.

Offline

#5 2013-09-22 10:07:34

hamhut1066
Member
From: Kenya
Registered: 2013-07-29
Posts: 10

Re: taskwarrior and zsh completion makes terminal crash

That sorted it, thanks. Am kinda tempted to use my one though. just because tab completion is a little faster and I have only put in functions I use tongue Slightly odd functionality but meh. I now know the quirks of it


Arch Linux | i3 | mpd | vim
`Everything to those who wait`

Offline

Board footer

Powered by FluxBB