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

harsh ask automatically asks for dates from a many days ago when run for the second time. #31

Open
sevennotfound opened this issue Dec 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sevennotfound
Copy link

When harsh ask is run for the first time, it lets you choose from how many days ago you wish to track.
Running it again automatically asks for dates from a long time ago, even though you chose 0.

Steps to reproduce the behavior:

  1. Start with an empty log file
  2. Do harsh ask and select 0
  3. Mark your habits for today's date
  4. Do harsh ask again.
    Now it should ask about your habits for many days ago.

In my case, it asks for all dates since 2024-11-21. (see image)
image

Expected behavior: It should ask for incomplete habits for today.

Environment (please complete the following information):

  • OS: Linux
  • OS version: Linux fedora 6.11.8-300.fc41.x86_64
  • Harsh version 0.10.5
@sevennotfound sevennotfound added the bug Something isn't working label Dec 1, 2024
@sevennotfound sevennotfound changed the title harsh ask automatically asks for dates from a week ago when run for the second time. harsh ask automatically asks for dates from a many days ago when run for the second time. Dec 1, 2024
@wakatara
Copy link
Owner

wakatara commented Jan 5, 2025

@sevennotfound
Happy New Year!

Yeah, this is a side effect of the fact the system needs a date to calculate the "start" of a habit from, so if you don't set one, it bounces back the default (8 days) to check on it.

Lemme puzzle out how to deal with this edge case a bit until someone enters a first entry and then go from there.

Sorry for not taking a look at this one sooner, since it affects just people with the intial onboarding (ie. once) I de-prioritized it in favour of other features and such.

Hope 2025 is off to a great start and treating you well. Hoping harsh is part of your resolution tracking this year... =]

@sevennotfound
Copy link
Author

@wakatara
Happy New Year man!
I've been using harsh ever since and it's been going well. I hope your year is off to a good start as well!

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