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

Add "snooze" #19

Open
prendradjaja opened this issue Mar 24, 2018 · 3 comments
Open

Add "snooze" #19

prendradjaja opened this issue Mar 24, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@prendradjaja
Copy link
Collaborator

No description provided.

@prendradjaja prendradjaja changed the title Snooze feature Snooze feature (details needed) Mar 24, 2018
@prendradjaja
Copy link
Collaborator Author

If you snooze someone for 10 days, that means that ten days from today, they will reappear on the list. I'm not sure what the best way to answer the question "When they reappear, when should the next hangout be?" is.

One reasonable option is: The next hangout should be user.period (we should rename user.freq) days after they come back.

Other details:

$ fl list
2018-01-01 alice-liddel
2018-02-02 bob-ross
2018-03-03 carol-willick
2018-04-04 dorian-gray

$ fl help snooze  # also, command-specific help could be a thing! i'm not necessarily saying we need to implement it now, though -- this is just illustrative
Examples:
  fl snooze NAME 2x  (2 cycles)
  fl snooze NAME 3d  (3 days)
  fl snooze NAME 1w  (1 week)
  fl snooze NAME 4m  (4 months)
  fl snooze NAME forever

$ fl snooze alice-liddel forever
Snoozed alice-liddel indefinitely.

$ fl snooze bob-ross 3x
Snoozed bob-ross for 90 days.

$ fl snooze carol-willick 2w
Snoozed carol-willick for 14 days.

$ fl list
2018-04-04 dorian-gray

$ date
2018-03-24

$ fl list --snoozed  # or --snoozed-only if we might want --include-snoozed too (which includes unsnoozed too)
2018-04-17 carol-willick  # 3/24 + 14 days (snooze) + 10 days (period)
2018-07-22 bob-ross       # 3/24 + 90 days (snooze) + 30 days (period)
never      alice-liddel

Once sufficient time has passed, snoozed friends move back to the regular list:

$ date
2018-04-07

$ fl list
2018-04-04 dorian-gray
2018-04-17 carol-willick

To be clear, # marks a comment, not something to be included in the output.

@prendradjaja
Copy link
Collaborator Author

Obviously feel free to give feedback on this "proposal." I think I'm just gonna start implementing it anyway (what else is the point of a side project anyway?), but it's sometimes fun and useful to write documentation in this way too!

@prendradjaja prendradjaja changed the title Snooze feature (details needed) Snooze feature Mar 24, 2018
@prendradjaja prendradjaja changed the title Snooze feature Add "snooze" Mar 24, 2018
@prendradjaja prendradjaja self-assigned this Mar 24, 2018
@prendradjaja
Copy link
Collaborator Author

@marwahaha Instead of this, what do you think of the (very different) following idea:

Snooze just hides a person from fl list temporarily. Does not affect scheduling. Useful if, for example, you know you're going to hang out with a person soon and don't need to see them on the list.

@marwahaha marwahaha added the enhancement New feature or request label Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants