iridakos/stup

Add configuration option to show last notes when not available for a given date

Opened this issue ยท 9 comments

When on Monday, while not having worked on the weekend, I would like to be able to run stup show and see what I noted on Friday.

Doesn't it ask you if you want to see last notes (i.e. if none for the weekend are present, those from Friday)?

I think it would be nice to add a configuration setting show_last_when_missing with values true/false.

When in effect, the show action should inform that it didn't find notes for the given date and that it will show the notes found at the latest date with notes before the given one without prompting for confirmation.

What about making it more general (edit file etc.)? Something like --assume-yes and --assume-no.

@tiosgz Nice idea! I will open an issue to allow this flag and respect in those paths that we would expect y/n.

This issue though is very valid (regardless of the aforementioned flag). Users should be able to default to latest date notes without having to always append --assume-yes/--assume-no

@all-contributors please add @ioanniswd for ideas.

@iridakos

I've put up a pull request to add @ioanniswd! ๐ŸŽ‰

The config for show_last_when_missing seems ideal.

@ioanniswd I can work on this but if you have already started working on this let me know to skip, thanks!

Was this fixed with 97c6028 ?