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

Number of tasks shown is incorrect. #1

Open
chrisbeardy opened this issue Jun 9, 2020 · 1 comment
Open

Number of tasks shown is incorrect. #1

chrisbeardy opened this issue Jun 9, 2020 · 1 comment

Comments

@chrisbeardy
Copy link

Using todo.sh ls prints a line at the end saying how many tasks are shown, e.g:

todo.sh ls +todo
45 of 65 tasks shown

However with this addon, it always states that all tasks are shown but this would not be correct if we are hiding something.

Current representative output:

todo.sh ls

task 1 +todo
task 2 +todo
task 3 +other

3 of 3 tasks shown

todo.sh hide +todo

task 3 +other

3 of 3 tasks shown

Output should be:

todo.sh ls

task 1 +todo
task 2 +todo
task 3 +other

3 of 3 tasks shown

todo.sh hide +todo

task 3 +other

1 of 3 tasks shown
@klapacz
Copy link

klapacz commented Mar 28, 2021

todo.sh hide @server is the same as todo.sh ls -@server so you can replace whole hide script with this

#!/bin/sh

shift 1
TERMS=$(echo "$*" | sed 's/ \+/ -/')
"$TODO_FULL_SH" list -$TERMS

and it will show correct count of shown tasks too.

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

No branches or pull requests

2 participants