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

File renaming functions are greyed out (deactivated) for unclear reasons #7525

Closed
sauliusg opened this issue Mar 13, 2021 · 2 comments · Fixed by #7548
Closed

File renaming functions are greyed out (deactivated) for unclear reasons #7525

sauliusg opened this issue Mar 13, 2021 · 2 comments · Fixed by #7548
Labels
[outdated] type: bug Confirmed bugs or reports that are very likely to be bugs

Comments

@sauliusg
Copy link
Contributor

JabRef version 5.2, 5.3 and 100.0.0 (commit 0dd4de7) on Linuxmint-20.1 and LinuxMint-19.3.

File rename commands are greyed out and not active, and the reason is not clear for the user. Moreover, these commands are inactivated at the moments when they are badly needed!

Steps to reproduce the behavior:

  1. Start the relevant version of the JabRef;
  2. Load some .bib library; the file used for testing is in the .zip below:
    new.zip
  3. Populate directory "new/" with some OA PDFs having the same names as in the .bib file;
  4. For testing, the following settings were used:
    -- Autolink files: use regular expression **/[year]_[auth].*\\.[extension];
    -- File format pattern: [year]_[auth]_[firstpage];
    -- File directory pattern: by-author/[authIni1]/[auth];
  5. Right-click on the file linkage box in the entry editing window;
  6. For version 5.2, both "Move to file directory..." are always disabled, but "Rename to a defined pattern" is active and works:
    Screenshot from 2021-03-13 15-37-22
  7. In 5.3 and 100.x (the current master tip), the "Rename to a defined..." and "Move to file directory and rename..." are enabled at the beginning, but are disable after the first rename, with now means to reenable them except shutting down the whole JabRef and starting it again. Changing the BibTeX entry (e.g. adding page numbers, that potentially change the "defined name pattern") does not re-enable these fields:
    Screenshot from 2021-03-13 15-48-56

Either the commands should be re-enabled after edit, or not disabled at all; otherwise the renaming feature (which I use a lot!) becomes next to unusable...

@Siedlerchr Siedlerchr added the [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs label Mar 15, 2021
@calixtus
Copy link
Member

Hi @sauliusg , I think I located the problem and fixed it. Would you be so kind to test the build at https://builds.jabref.org/pull/7548/merge/ if this works for you? Be aware that this is a development build, so please backup your database first.

Also I saw that changing the default file link name pattern in the preferences requires a restart to take effect. This is probably a bug for later - since refactoring the preferences is a major background issue. But the menu entry should be enabled again if you change the entry.

Most important is that you can continue to work with your library.

@sauliusg
Copy link
Contributor Author

Dear calixtus,

thank you for the quick fix!

Hi @sauliusg , I think I located the problem and fixed it. Would you be so kind to test the build at https://builds.jabref.org/pull/7548/merge/ if this works for you? Be aware that this is a development build, so please backup your database first.

I can confirm that 'JabRef-5.3-portable_linux.tar.gz' from the above directory works as expected. The file renaming functions are active; renaming or renaming and moving to the destination directory work as expected. After that they are greyed out, but editing the entry (changing page numbers or author name) re-enables them again. So far everything fine.

Also I saw that changing the default file link name pattern in the preferences requires a restart to take effect. This is probably a bug for later - since refactoring the preferences is a major background issue.

I tested with my pre-configured patterns from JabRef-5.2 configuration, and it works. I'll check later how changing the pattern(s) influences the functionality.

But the menu entry should be enabled again if you change the entry.

Indeed, it is.

Most important is that you can continue to work with your library.

With this change I can work fine!

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

Successfully merging a pull request may close this issue.

3 participants