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

FIx only one linked files showing in tooltip #12471

Closed
wants to merge 9 commits into from
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv

### Changed

- WE changed the tooltop to display all linked Files when hovering instead of only displaying the the first linked file. [#12470](https://github.com/JabRef/jabref/issues/12470)
- We moved the "Generate a new key for imported entries" option from the "Web search" tab to the "Citation key generator" tab in preferences. [#12436](https://github.com/JabRef/jabref/pull/12436)
- We improved the offline parsing of BibTeX data from PDF-documents. [#12278](https://github.com/JabRef/jabref/issues/12278)
- The tab bar is now hidden when only one library is open. [#9971](https://github.com/JabRef/jabref/issues/9971)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,13 @@ private void setCommonSettings() {

private String createFileTooltip(List<LinkedFile> linkedFiles) {
if (!linkedFiles.isEmpty()) {
return Localization.lang("Open file %0", linkedFiles.getFirst().getLink());
StringBuilder tooltipText = new StringBuilder();

for (LinkedFile linkedFile : linkedFiles) {
tooltipText.append(linkedFile.getLink()).append("\n");
}

return Localization.lang("Open files: \n%0", tooltipText.toString());
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ Move\ panel\ down=Move panel down
Linked\ files=Linked files
Group\ view\ mode\ set\ to\ intersection=Group view mode set to intersection
Group\ view\ mode\ set\ to\ union=Group view mode set to union
Open\ file\ %0=Open file %0
Open\ files\:\ \n%0=Open files: \n%0
Toggle\ intersection=Toggle intersection
Toggle\ union=Toggle union
The\ group\ name\ contains\ the\ keyword\ separator\ "%0"\ and\ thus\ probably\ does\ not\ work\ as\ expected.=The group name contains the keyword separator "%0" and thus probably does not work as expected.
Expand Down
Loading