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

Date tab completion not working in zsh #185

Open
davidoskky opened this issue Jun 8, 2019 · 6 comments
Open

Date tab completion not working in zsh #185

davidoskky opened this issue Jun 8, 2019 · 6 comments

Comments

@davidoskky
Copy link

davidoskky commented Jun 8, 2019

When inserting a due date, the parameter cannot be tab completed as it is in taskwarrior.
Expected behaviour:
Inserting "due:tom TAB" completes tom in tomorrow
Actual behaviour:
Nothing happens

This doesn't work with all other date parameters as well.

@thehunmonkgroup
Copy link
Member

I have tab completion working properly in TaskWarrior, and as far as I can tell, it does not handle tab completion of dates. This does not complete for me: task 1 due:tom[TAB]

Also task 1 due:tom is valid, so typing the full word is not necessary in this case.

@davidoskky
Copy link
Author

I find it odd that it doesn't work for you, for me it does complete flawlessly and I didn't set any special option; I'm using version 2.5.1.
I just tried to make sure; task 1 due:tom[TAB] completes to tomorrow.
While it is true that tom is also accepted, some other options aren't: later, someday, month names.
It would overall be a nice feature.

@thehunmonkgroup
Copy link
Member

I've reviewed https://github.com/GothenburgBitFactory/taskwarrior/blob/2.6.0/scripts/bash/task.sh, which provides the stock tab completion, and I see nothing in there that deals with completing due dates. I'm also running 2.5.1.

Are you sure you don't have some kind of plugin installed?

Also, which version of VIT does your report apply to? We might consider adding this in 2.x, especially if somebody submits a pull request.

@davidoskky
Copy link
Author

I am running VIT 2.0.0a1
I have no plugins installed; i figured out the autocomplete only works on zsh by default.
The completion for that is here: https://github.com/GothenburgBitFactory/taskwarrior/blob/2.6.0/scripts/zsh/_task
I do not really know why it is not available for bash.

@thehunmonkgroup
Copy link
Member

I do not really know why it is not available for bash.

Well nobody has volunteered to add it. Are you raising your hand? ;)

@fdela
Copy link
Collaborator

fdela commented Jul 27, 2020

I suggest this issue having "in zsh" appended to more accurately describe it.

@thehunmonkgroup thehunmonkgroup changed the title Date tab completion not working Date tab completion not working in zsh Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants