8000 Project name completion only works for projects with pending tasks · Issue #265 · vit-project/vit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Project name completion only works for projects with pending tasks #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers 8000 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

Closed
fdela opened this issue Aug 12, 2020 · 4 comments
Closed

Project name completion only works for projects with pending tasks #265

fdela opened this issue Aug 12, 2020 · 4 comments
Labels

Comments

@fdela
Copy link
Collaborator
fdela commented Aug 12, 2020

Describe the bug
When trying to autocomplete project (using e.g. (a)dd, (m)odify or (p)roject command), only projects which have at least one pending task are available (tested in next and all reports).

To Reproduce
Try to change a task project using m or p autocomplete, and hit tab key repeatedly to try and find a project which has currently no pending task.
In provided test case, p2 has a pending task, while p1 and p2.sub have none.

Expected behavior
Autocomplete should show all available project names, whether they currently have any pending task or not, upon hitting tab key repeatedly.
In provided test case, p1, p2 and p2.sub should be available (and possibly empty string).

Test case
project-name-completion.sh.txt

Notes

  • task rc.list.all.projects=yes _projects can be used to retrieve the full list of used projects in a TaskWarrior backward-compatible way (tested with 2.4.4 and 2.5.1).
  • This would also be consistent with tag completion behaviour.
@thehunmonkgroup
Copy link
Member

Does this work differently in TaskWarrior? I believe I get the list of available projects from there.

@fdela
Copy link
Collaborator Author
fdela commented Aug 13, 2020

task _projects returns the list of projects with pendings tasks only (although manpage says it returns all project names used).

You can use task _unique project to actually return the whole list, but it's only available in TaskWarrior 2.5.0+.
Alternative is task rc.list.all.projects=yes _projects which also works for 2.4, hence should be the preferred way for compatibility IMO.

@thehunmonkgroup
Copy link
Member

Should be fixed, please verify.

@fdela fdela added the bug label Sep 13, 2020
@fdela
Copy link
Collaborator Author
fdela commented Sep 13, 2020

Should be fixed, please verify.

Works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0