-
-
Notifications
You must be signed in to change notification settings - Fork 523
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 sort order parameter #821
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It would also add the option/parameter to store in descending order. journals: Example work.txt: [2020-05-11 09:00] Test 2. [2020-05-10 09:00] Test 1. |
The more I've been thinking about this, the more it seems like a format parameter. And since search happens first, then all search results are handed to a formatter (which can reverse the order while displaying), then this wouldn't have any effect on Also, @damufo, sorry but this wouldn't have any effect on how a journal is stored. We currently don't have any plugins other than encryption to change a journal's storage in a file (although we may revisit that in the future). |
Some sort of sorting here would be beneficial for my use case. I want to publish my public journal online where readers would load the page and get the most recent posts on top. Curious if there are any further plans to resolve this issue. |
@gumatias It's pinned in our backlog, so we will get to it eventually. But it's not currently at the top of our priority list. We always happily accept PRs for pinned issues, though, if anyone wants to get it implemented sooner. |
I would like to apply this on the file storage, can't we add that as a parameter in the config? |
Whatever this feature ends up looking like, it should affect sorting in both the editor and the console search results. See #1671 for a feature request on sorting by tags. This also brings up the question of using multiple sort calls at once. It makes me think there should probably be |
Currently, jrnl only outputs in ascending order. Adding a sort feature would allow for lots more flexibility in recipes and perhaps the export functionality as well. For instance, being able to get the date of the earliest (rather than latest) entry that matches a particular search would help with a recipe for #818.
There are lots of different ways this go, however, and I'd love to here anyone's thoughts on the best approach:
Looks like part of this issue was brought up in #396, but it staled out. I think whatever the consensus is, we'll want to carefully measure its impact on the rest of the functionality, since this affects everything from display to editing to exporting to future recipes.
The text was updated successfully, but these errors were encountered: