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

Random numbers at start of line recognized as task start hour #643

Open
2 of 6 tasks
nikolay-martynov opened this issue Nov 22, 2024 · 3 comments
Open
2 of 6 tasks
Labels
bug Something isn't working

Comments

@nikolay-martynov
Copy link

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

https://github.com/ivan-lednev/obsidian-day-planner?tab=readme-ov-file#1-showing-events-from-your-daily-notes tells that tasks start with time like 10:00. Random numbers at the beginning of the line should not be treated like task time if it does not match time pattern.

Current behaviour

Whenever you have a line starting with a number, it is treated like start hour even if does not even look like a time but clearly is something different.
image

Steps to reproduce

Add to your daily note

- [ ] a task
	- 9abc just some remark
	- 11.12.13.14.15 just another remark

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.7.7

Possible solution

Probably, pattern to recognize task time should include : and minutes and space or just make it configurable.

@nikolay-martynov nikolay-martynov added the bug Something isn't working label Nov 22, 2024
@technotherion
Copy link

Confirming that I'm also experiencing this behavior.

I tested a numbered list of todos starting at 1 going to 12 as follows:

- [ ] 1 thing
- [ ] 2 things
- [ ] 3 things

I'm using 12 hour format and I noticed that the start hour influences which one of these tasks shows up on the timeline.
Since my day start is at 7am, only - [ ] 7 things and higher will show on my timeline at the corresponding hour. Times that are technically tomorrow (e.g. 1-6am) do not end up with one of these tasks on them.

It's strange -- I thought for sure that I'd submitted this bug before and was wondering why I could not find it. It ends up that it was an issue in Time Ruler, and not Day Planner. j-palindrome/obsidian-time-ruler#129

@nikolay-martynov
Copy link
Author

I do not have Time Ruler installed.

@technotherion
Copy link

I do not have Time Ruler installed.

Understood -- the comment I made was unrelated and I apologize for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants