-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Dropping a PDF on an entry should be consistent #121
Comments
I always found it confusing that I can't simply drag and drop a pdf file to the main table in order to import it (I think dropping on the tab header works). What do you think about:
|
Idea: from JabCon: When creating a new entry, JabRef should parse the PDF using both the PDF Content importer and the XMP. Then, using the merge entries dialog, the resulting BibTeX entry should be offered. Only if conflicts. If no conflicts, just create the entry with the information. User should not be asked, sensible defaults. - Use should use cleanup. |
Although we talked at this during JabCon, I have problems remembering all decisions: |
The decision was as far as I remember:
To distinguish the first two different drop behaviors for the maintable, the process there should be visual feedback, i.e., display "add as new entry" vs "link file" under the cursor java code. |
I have following forces:
Thus, I propose to refine @tobiasdiez proposal (#121 (comment)) with
|
What about always move and rename the file if you hold the shift key? |
Yeah, sounds great: Updated the comment |
Unfortunately this is a bit problematic. I can't really detect if the drag and drop is coming from external if a key is pressed. I tried to use a combination with a KeyEventFilter but that does not work reliable,. |
These modifiers are handled by javafx automatically and are available through getTransferMode. The different tarnsfer modes are MOVE (no modifier), COPY (Ctrl) and LINK (Shift + Ctrl). The modifiers in brackets might no be correct (and may actually vary by OS). |
Yeah, thanks for the hint! I absolutely did not know that these TranserModes represent the |
Fixed in #3765 We would like to ask you to use a development build from https://builds.jabref.org/master and report back if it works for you. Please remember to make a backup of your library before trying-out this version. |
Dropping on entry editor is now handle in #4408 |
When one wants to attach a PDF to an entry and move the PDF to the local data base folder, this is only possible by dropping the PDF into the preview pane or the "File" field (in the tab "General"). Then, the dialog "link to file" (call it "link dialog") is shown. When one drops the PDF onto the entry in the table, another dialog ("Import Metadata from PDF", call it "import dialog") is shown.
The import dialog offers "only attach PDF", which is one option of the link dialog. Thus, the options offered at the import dialog are incomplete. Therefore, the options of the link dialog should be included in the import dialog, too.
The text was updated successfully, but these errors were encountered: