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

gets confused if SCHEDULED and DEADLINE are on same line #79

Open
tbm opened this issue Jul 9, 2020 · 7 comments
Open

gets confused if SCHEDULED and DEADLINE are on same line #79

tbm opened this issue Jul 9, 2020 · 7 comments

Comments

@tbm
Copy link

tbm commented Jul 9, 2020

With the "day" view I get:

Date: Thursday 09 July 2020, Span: day
       test:         50y 202d ago: TODO Test 1
       test:         50y 202d ago: TODO Test 2                                        

But when I switch to "week" or "month" view I get:

Date: Monday 06 July 2020, Span: week
   No pending tasks!

Why does the week span show nothing when there are clearly tasks this week (today).

Example file:

* Test
*** TODO Test 1
SCHEDULED: <2020-07-09 Thu 12:00> DEADLINE: <2020-07-09 Thu 17:00>

    Test 1

** TODO Test 2
SCHEDULED: <2020-07-10 Fri 12:00> DEADLINE: <2020-07-10 Fri 17:00>
@tbm tbm changed the title agena view: span week doesn't show tasks from this week gets confused if SCHEDULED and DEADLINE are on same line Jul 9, 2020
@tbm
Copy link
Author

tbm commented Jul 9, 2020

The problem is that SCHEDULED and DEADLINE were on the same line. that seems to confuse vim-dotoo. Note the "50y 202d ago".

I believe this is valid in Org mode though. At least Orgzly produces such files.

@tbm
Copy link
Author

tbm commented Jul 10, 2020

This is related to #80

@tbm
Copy link
Author

tbm commented Jul 10, 2020

I believe this is valid in Org mode though. At least Orgzly produces such files.

I believe it's mandated in Org, see #80

@Gavinok
Copy link
Contributor

Gavinok commented Jul 10, 2020

@tbm I've had the same issue. However since as far as I know vim-dotoo does not support using both SCHEDULED and DEADLINE in the same heading I just use one until the feature can be added.

@dhruvasagar
Copy link
Owner

Yes I have never tested / used this feature so I am not exactly aware on the exact behavior associated with having both. However, logically, it does make sense to allow both. Will check the metadata parser.

@dhruvasagar
Copy link
Owner

Also note, in general vim-dotoo doesn't do a good job distinguishing between a scheduled date vs a deadline date, that's also a known issue and something that should be fixed sooner rather than later.

@dhruvasagar
Copy link
Owner

For folks interested, I have pushed a new update (Version 0.12.0) where i've significantly improved the Agenda View so it distinguishes between Scheduled headlines vs Headliens with a deadline properly. I've kept the logic to be close to how I understand emacs org-mode does.

I still haven't addressed the issue of supporting both a deadline & a schedule on the same headline. I will work on the separately in the coming releases.

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

3 participants