Open
Description
Currently, the functionality of "Remove link" is working for one file only. That means, deletion of multiple linked files with "Remove link" is not possible.
Task
Rework all entries of the context menu being either disabled for multiple selected files or work with multiple selected files.
Current | New | Comment |
---|---|---|
Edit | (disabled) | |
Open file | Open file(s) | iterate through all selected files and open each |
Open folder | Open folder(s) | collect all folders of all selected files (in a set) and open each |
Download file | Download file(s) | |
Rename file to a defined pattern | (disabled) | Disabled, because there is a dialog chec |
Move file to file directory | Move file(s) to file directory | enabled only if all files are outside the file directory |
Copy linked file to folder... | Copy linked file(s) to folder... | All files are copied to the selected destination folder |
Redownload file | Redownload file(s) | only enabled if at least one file has an online link |
Remove link | Remove link(s) | |
Permanently delete local file | Permanently delete local file(s) |
Note that the localization strings need to be replaced.
Illustration
See #12565 at "Current behavior" how to attach two files to an entry.
Hints
Auto link feature
- Start JabRef
- Open
test-library-with-attached-files.bib
contained insrc\test\resources\org\jabref\logic\search
. - Delete all entries EXCEPT
minimal-sentence-case
. "Keep file(s)" while deleting! - Select entry
minimal-sentence-case
- Go to tab "General"
- See two files attached
- Select both
- "Remove link"
- Both should be gone (above)
- Switch entries
- Switch back
- See that the two links are up again.
This is OK (!) because the entry editor automatically links files beginning with the citation key
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress
Status
Normal priority