I have two folders: “Documentation” and “Literature”. The first one contains the .bib file and the second one has all my PDF files.
When I drag&drop a downloaded PDF onto an existing entry, JabRef copies that file, correctly renames it and links it to the that entry. The issue I have is that JabRef stores that PDF file in the same folder as the bib file.
in the preferences → Linked files: Uncheck “Search and store files relative to library location”
The naming is not ideal of this option (bothers me as well) it means they are stored next to the bib file. This option takes precedence over all other directories.
Oh I didn’t know about the modifier keys. I didn’t work like described in the link but pressing Shift (on Ubuntu) did the Job: Moving + renaming the file in the correct folder and linking it.
A little detail, which is not perfect, is the path of the linked file. It’s relative to the bib file folder. I would prefer to have it relative to the selected file directory which is given in the bib file: @Comment{jabref-meta: fileDirectory:/path/to/literature/;}
I will take a look into it. Normally, it should be relative to the specified directory.
Interesting finding: It only sets the path relative to the bib file, when the file was in a totally different folder before. (e.g. ~/Downloads). If the file is already in the literature directory the linked path has only the file name, so it’s relative the the literature directory.