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

Find unlinked files should propose to link to existing entry (if it exists) #7288

Closed
koppor opened this issue Jan 4, 2021 · 8 comments
Closed

Comments

@koppor
Copy link
Member

koppor commented Jan 4, 2021

Source: #7172 (comment)

Instead of only suggesting importing the pdf as a new entry, JabRef should also suggest to link the file to a fitting existing entry (by adding a button in the file tree next to the file for which an entry might already exist).

@ilippert
Copy link
Contributor

I think I offer a relevant and related way of using JabRef: I have a folder in which all the linked files of JabRef are located.
I have also a different folder in which I collect pdfs that are not yet linked at all to JabRef. Once I link them I also move them to JabRef.

If possible, it would be amazing if JabRef could search one/a number of specified other folders also for combinations of author names and years or titles.

@ilippert
Copy link
Contributor

still is a good idea

@k3KAW8Pnf7mkmdSMPHz27
Copy link
Member

@ilippert, is the issue with

  1. "Autolink files" with "Use regular expression search": Files aren't automatically linked?
  2. The menu "Lookup" with "Search for unlinked local files": Doesn't deal with duplicated bibentries?

@ilippert
Copy link
Contributor

ilippert commented Aug 2, 2021

Well, my proposal was to think more broadly: one dimension mentioned in #7288 (comment) is that JabRef could search the "Main file directory" for pdfs and also offer to link these to already existing entries in the library. Another dimension is to add more folders, beyond the "Main file directory" for searching.

@JabRef JabRef deleted a comment from github-actions bot Aug 2, 2021
@koppor
Copy link
Member Author

koppor commented Aug 2, 2021

For the first dimension (which I meant here): We could use the duplication check algorithm "magically" during the synchronization. - Detail question @ilippert: Would you like to have more control what JabRef does (e.g., by deciding each file one-by-one) or trust the "JabRef magic" and fix minor issues afterwards?

For the second dimension: Files in these folders are linked in absolute paths. Would that be OK for you @ilippert.

@ilippert
Copy link
Contributor

ilippert commented Aug 4, 2021

For the first dimension (which I meant here): We could use the duplication check algorithm "magically" during the synchronization. - Detail question @ilippert: Would you like to have more control what JabRef does (e.g., by deciding each file one-by-one) or trust the "JabRef magic" and fix minor issues afterwards?

I would love a "wizard" that asks me for each case, what to do about the file. As in: I found file X in folder Y. It does not belong to an entry in your library yet. But entry Z (give me a hover tip on the entry's content) seems to match file X. Check this checkbox, if you want these to be linked (or moved)

I could imagine a table-like layout:
column 1: file x@folder y.
column 2: candidate entry
column 3: action (link, move, rename or more?)
below the table a line asking to apply the changes.

For the second dimension: Files in these folders are linked in absolute paths. Would that be OK for you @ilippert.

absolute paths are perfectly fine. (And if I ever needed relative paths, I would ref to a symbolic link that itself is relative).

@koppor
Copy link
Member Author

koppor commented Apr 25, 2023

I refined that issue at #9798. There, I described a) an automatic way for "Autoset file links" - and refined the "Search for unlinked local files" dialog.

The issue with "Support multiple file directories" will be refined. We need to think about a) the UI and b) the logic. (I very well understand that issue. I treated it differently somehow: #160)

@koppor koppor closed this as completed Apr 25, 2023
@github-project-automation github-project-automation bot moved this from Low priority to Done in Features & Enhancements Apr 25, 2023
@ThiloteE
Copy link
Member

Very much related, but different issue: https://discourse.jabref.org/t/broken-link-files/3783
"How to remove broken links, if the file cannot be found anymore."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

6 participants