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

Recent Libraries list in File menu omits underscores in filenames #6383

Closed
1 task
GreyMatter17 opened this issue Apr 30, 2020 · 3 comments · Fixed by #6389
Closed
1 task

Recent Libraries list in File menu omits underscores in filenames #6383

GreyMatter17 opened this issue Apr 30, 2020 · 3 comments · Fixed by #6389
Labels
bug Confirmed bugs or reports that are very likely to be bugs ui

Comments

@GreyMatter17
Copy link

JabRef version 5.0 on Windows 10 and Ubuntu 16.04

The "Recent libraries" list within the File menu displays the filenames of recently opened .bib database files, but if any of those filenames include an underscore, the underscore is not shown.
For example, the database Bug_List.bib will be be displayed as BugList.bib.

Strangely, clicking on the entry BugList.bib within the Recent Libraries list will (correctly?) open the database file Bug_List.bib, so the problem must simply be related to how the filename is displayed within the Recent Libraries list.

I did not observe this problem with JabRef 4.3.1, or any earlier version.

Steps to reproduce the behavior:

  1. Create a minimal .bib database file, and name it Bug_List.bib
    This .bib file need contain only a single entry.
  2. Open Bug_List.bib within JabRef 5.0.
    The name in the Tab above the main table will correctly show the filename Bug_List.bib
  3. Look at the entries in the File/Recent libraries menu.
    The most recent library will be listed as BugList.bib
@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs ui labels Apr 30, 2020
@MootezSaaD
Copy link
Contributor

MootezSaaD commented Apr 30, 2020

By default mnemonicParsingProperty is set to true for MenuItem which parses the underscore character.
So setting it here to false would fix it.

https://github.com/JabRef/jabref/blob/2825c29ae797c2c1ff5e632152ac1b6280f7af40/src/main/java/org/jabref/gui/menus/FileHistoryMenu.java#L53_L58

@Siedlerchr
Copy link
Member

@MootezSaaD Thanks for investigating, freel free to create a fix

@tobiasdiez
Copy link
Member

Thanks to @MootezSaaD this should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs ui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants