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

Displayed remaining time in agenda view buffer doesn't refresh when pressing 'r' key #73

Open
kadadot216 opened this issue Jun 7, 2020 · 2 comments

Comments

@kadadot216
Copy link

kadadot216 commented Jun 7, 2020

Hello,

I had a 6 long hour vim session, I opened my agenda buffer open at the start of my session.
Then once I was done for today, I noticed that when I refresh the agenda view, the time remaining was not actualised at all and it still shows me the time I had 6 hours ago. i.e :

I have a task for Tomorrow at 10am
I started my session Today at 14pm
It shows me I have 20 hours remaining
I finish at 20pm.
I hit refresh on the agenda view
It should display I have 14 hours remaining.
It still displays I have 20 hours remaining

Also if I edit the DEADLINE of the existing tasks, it affects the time remaining when I refresh BUT it is only relative to the old time counter.

The only way to update the time remaining view is to restart the vim session. But I don't wanna spawn more vim sessions.

Steps to reproduce.

Create a task with a deadline.

Wait 2 minutes.

Press 'r' in the agenda view.

Expected results:

The tasks time remaining has diminished from 2 minutes.

Actual results:

The tasks time remaining is still the same.

Please, could you fix this asap?

@dhruvasagar
Copy link
Owner

@kadadot216 It is sometimes possible that a long vim session ends up going past midnight, however, the agenda view remains to keep the previous day as it's current date. When this happens r does not fix the current date, since that only refreshes the agenda view by applying the current filters. I have faced this before, when this happens hitting . fixes the agenda view and sets the current date to the correct date.
Can you confirm if this was your issue ? I believe, it should be appropriate to change the bahavior of r to do the same as ., if the date has changed. I can do this as long as we can ensure this was the issue.

@kadadot216
Copy link
Author

Hello, When I refresh with ., all my tasks deadlines go forward.
I've made an asciicast https://asciinema.org/a/lSuW4U2QYEupv8HxxlHjg6brp

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