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

New global search #8045

Merged
merged 51 commits into from
Sep 2, 2021
Merged

New global search #8045

merged 51 commits into from
Sep 2, 2021

Conversation

Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented Aug 31, 2021

Fixes #4096

Experimental implementation of the global search.

  • Planned followups should include some sort of jump-to-entry-on-click
  • Keep search string when selecting different tabs
  • Entry preview

grafik

__

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

TODO: Remove on closing  tab
TODO: set SearchQuery also to other tabs then
Clear and readd new entries

TODO: Create some kind of bindings?
* upstream/main:
  Switch to archive.org for site.icu-project.org
  Add Java Profiler
  Fix output when closing JabRef while indexing (#8043)
  Remove explicit XMP import for PDFs (#8040)
  Fix crosses
  Stop indexing on cancel (#8039)
  Write embedded bib in addition to XMP metadata (#8037)
  Cleanup preferences (#8036)
  Fix Search dark mode theme (#8028)
  Allow the search to return multiple entries. (#8038)
  Refactored GroupTree.fxml to plain java (#8035)
Extract libary tab logic to file utils
add global Search property
@koppor koppor changed the title WIP New global search [WIP] New global search Sep 1, 2021
@koppor koppor marked this pull request as draft September 1, 2021 12:01
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 1, 2021
@Siedlerchr Siedlerchr marked this pull request as ready for review September 1, 2021 14:44
@Siedlerchr Siedlerchr changed the title [WIP] New global search New global search Sep 1, 2021
calixtus and others added 4 commits September 1, 2021 17:02
@calixtus
Copy link
Member

calixtus commented Sep 1, 2021

@ytzemih Great news: @Siedlerchr was able to bring back the GlobalSearchDialog.

src/main/java/org/jabref/gui/StateManager.java Outdated Show resolved Hide resolved
src/main/java/org/jabref/gui/DialogService.java Outdated Show resolved Hide resolved
src/main/java/org/jabref/gui/search/GlobalSearchBar.java Outdated Show resolved Hide resolved
import org.jabref.model.database.BibDatabaseContext;
import org.jabref.preferences.PreferencesService;

public class SearchResultsTable extends TableView<BibEntryTableViewModel> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this class has quite a bit of code duplication with the main table, can we have one class that handles the display of entries (in a table). Would make it easier to reuse it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, but it's just part of the constructor and this is exactly what the want. Show the user a table he's familiar with

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would escalate this PR way too much. Probably something for a later code quality PR.

Siedlerchr and others added 21 commits September 1, 2021 21:30
* upstream/main:
  Enable copy&paste for IntelliJ run configuration
  GitBook: [main] one page modified
  GitBook: [main] one page modified
  GitBook: [main] 19 pages and 6 assets modified
  Refine documentation
  Oobranch f : add frontend (#7791)
  Observable Preferences C (General) (#8047)
  Welcome btut 🎉
  Observable preferences B (ProtectedTerms, EntryEditor and MrDlib) (#8046)
  Refine howto (#8049)
  Decision on handling of localized preferences.
  Added option to import CFF files (#7946)
  Observable preferences A (Appearance and Importer) (#8041)
  Squashed 'buildres/csl/csl-locales/' changes from ec6d62a9e7..7a507fc008
  Squashed 'buildres/csl/csl-styles/' changes from ec4a4c0..2b37392
@koppor koppor merged commit 9c5b8ab into main Sep 2, 2021
@koppor koppor deleted the newGlobalSearch branch September 2, 2021 14:29
@koppor koppor added the jabcon label Sep 2, 2021
@koppor koppor mentioned this pull request Sep 2, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jabcon status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global search not available
5 participants