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 doubling up in specific circumstances #197

Open
Chriswaterguy opened this issue Nov 29, 2024 · 0 comments
Open

Tasks doubling up in specific circumstances #197

Chriswaterguy opened this issue Nov 29, 2024 · 0 comments

Comments

@Chriswaterguy
Copy link

Chriswaterguy commented Nov 29, 2024

This isn't necessarily a bug to fix, but if you find yourself with tasks doubling up, this might be helpful to know. And the dev may like to be aware of it:

I found that tasks will appear twice in the sidebar, in either of these circumstances:

The task is in the block immediately following a malformed task (no space after the square brackets, but with the task hashtag):

- [ ].  Malformed task #t  
- [ ] 🏃‍♂️ do [[spaced rep]]  #t  (this task appears twice)
- [ ] another task
- [ ] this task also appears twice.  #t 

Edit: I now realise the reason (obvious in hindsight): the first line of the block is not functioning as a check item, and so it is just functioning as a header for the block. Thus the hashtag is applied to all the lines in the block.

When the line before a task block includes the standard hashtag, and the task also includes the hashtag.

 Task block #t  
- [ ] This task appears once. 
- [ ] This task appears twice.  #t  

and
3.
You can even have the task appear three times, if you do both of these things.

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

1 participant