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

Efficient algorithm for extracting the most relevant information from the date #510

Open
baruchel opened this issue Dec 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@baruchel
Copy link

baruchel commented Dec 4, 2024

Most of the time, the arrival date of listed messages is the current day or the previous one; displaying the whole date is not very useful.

Another terminal client like Alpine follows a very interesting policy:

  • when the message is less than one day old, the time is displayed in a very clear format like 11:35
  • when the message is from yesterday, the date is "yesterday"
  • when the message is from the last 7 days, the name of the day is displayed "tuesday"

I don't remember the full behaviour in all cases, but I have found it very efficient for years. Maybe some similar algorithm could be useful.

@soywod soywod added the enhancement New feature or request label Dec 4, 2024
@soywod soywod added this to Pimalaya Dec 4, 2024
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
Status: No status
Development

No branches or pull requests

2 participants