Filter entries down to certain date ranges
The suggestion for improvement is related to the following problem I want to filter entries to a certain date ranges
E.g. JabRef should provide me with a list of all documents in my library that were published between 2001-05-17 and 2009-02-18.
Any of the below solutions would suffice
- [ ] Add this feature to the search bar
- [ ] Add this feature to group by date
Additional context
refs https://github.com/JabRef/jabref/issues/8902
refs https://github.com/JabRef/jabref/pull/14241, https://github.com/JabRef/jabref/pull/14169
ISO 8601
According to https://docs.jabref.org/finding-sorting-and-cleaning-entries/search#searching-with-optional-spelling we already could do this with regex:
year == 200[5-9]|201[0-1]βspecifies the range of years 2005-2011 (200[5-9] specifies years 2005-2009;| means "or"; 201[0-1] specifies years 2010-2011).
But I want something easier. Something that doesn't force me to type hundreds or lines of search expressions, if the date range is across multiple decades.
/assign-me
π Hey @ennymojje, thank you for your interest in this issue! π
We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.
For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.
In case you encounter failing tests during development, please check our developer FAQs!
Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.
Happy coding! π
β° Assignment Reminder
Hi @ennymojje, this is a friendly reminder about your assignment to this issue.
[!WARNING] This issue will be automatically unassigned in 11 days if there's no activity.
Remember that you can ask the JabRef Guru or DeepWiki about anything regarding JabRef. Additionally, our contributing guide has hints on creating a pull request and a link to our Gitter chat.
How to keep your assignment
If you are working on it, you can prevent automatic unassignment by:
- Submitting a draft pull request with your progress within 11 days
- Asking for the π Pinned label if you need more time
We appreciate your contribution and are here to help if needed!
I am working with ennymojje on adding this feature to the search bar. Where in the project is the logic for other search bar features implemented, for example regex and filters?
JabRef uses an ANTLR Grammar that specifies the syntax https://github.com/JabRef/jabref/blob/0ad94612e273e3e7d1e7673b683cde451002029f/jablib/src/main/antlr/org/jabref/search/Search.g4#L4
π Assignment Update
Hi @ennymojje, due to inactivity, you have been unassigned from this issue.
Next steps
If you still want to work on this:
- Submit a pull request showing your current state. You will be automatically assigned again.
- Ask a maintainer to assign you again.
Added status devcall: We need to define a ui solution. One contributor is suggesting a button in the search bar, which i strongly oppose. This will be too crowded. Whats next: Another button for searching only entries beginning with "WTF"?
This refs https://github.com/JabRef/jabref/pull/8850
Duplicate (?) of #7423
Did anyone try
date >= 2020-12-10 and date <= 2025-12-31
This would be the natural things I would type in.
Currently, these comparators are not availabel at https://docs.jabref.org/finding-sorting-and-cleaning-entries/search
Maybe, we should add them?