Skip to content

Have the context menu of linked files working for multipe selected files. #12567

Open
@koppor

Description

@koppor

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.

Image

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

  1. Start JabRef
  2. Open test-library-with-attached-files.bib contained in src\test\resources\org\jabref\logic\search.
  3. Delete all entries EXCEPT minimal-sentence-case. "Keep file(s)" while deleting!
  4. Select entry minimal-sentence-case
  5. Go to tab "General"
  6. See two files attached
  7. Select both
  8. "Remove link"
  9. Both should be gone (above)
  10. Switch entries
  11. Switch back
  12. See that the two links are up again.

This is OK (!) because the entry editor automatically links files beginning with the citation key

Image

Metadata

Metadata

Assignees

Type

Projects

Status

In Progress

Status

Normal priority

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions