Skip to content

Add option to disable autolinking of files in the entry editor#9903

Merged
Siedlerchr merged 15 commits into
mainfrom
disableAutoLinkPrefs
May 17, 2023
Merged

Add option to disable autolinking of files in the entry editor#9903
Siedlerchr merged 15 commits into
mainfrom
disableAutoLinkPrefs

Conversation

@Siedlerchr

@Siedlerchr Siedlerchr commented May 15, 2023

Copy link
Copy Markdown
Member

Fixes #5105
Mitigates #9800

Make @AEgit happy

### Compulsory checks
- [ ] Change in `CHANGELOG.md` described in a way that is understandable for the average user (if applicable)
- [ ] Tests created for changes (if applicable)
- [ ] Manually tested changed features in running JabRef (always required)
- [ ] Screenshots added in PR description (for UI changes)
- [ ] [Checked developer's documentation](https://devdocs.jabref.org/): Is the information available and up to date? If not, I outlined it in this pull request.
- [ ] [Checked documentation](https://docs.jabref.org/): Is the information available and up to date? If not, I created an issue at <https://github.com/JabRef/user-documentation/issues> or, even better, I submitted a pull request to the documentation repository.

@github-actions

Copy link
Copy Markdown
Contributor

Your code currently does not meet JabRef's code guidelines. The tool reviewdog already placed comments on GitHub to indicate the places. See the tab "Files" in you PR. Please carefully follow the setup guide for the codestyle. Afterwards, please run checkstyle locally and fix the issues.

More information on code quality in JabRef is available at https://devdocs.jabref.org/getting-into-the-code/development-strategy.html.

@koppor

koppor commented May 15, 2023

Copy link
Copy Markdown
Member

Screenshot:

image

@koppor

koppor commented May 15, 2023

Copy link
Copy Markdown
Member

Maybe "Enable smart automatic linking of files". We disable it at the General tab only, but keep following functionalities:

  • Search for a file when "View PDF" is executed
  • Quality -> Automatically File links

For these two features, we still need the settings below the checkbox. Hence, the new name proposal.

Should we move that checkbox below "Use regular expression search"? -- Otherwise, I would have expected, the other options would be grayed-out.

@Siedlerchr

Copy link
Copy Markdown
Member Author

I initially thought about disabling the other options, but they are still needed. Maybe it makes sense to move it to the entry editor tab? Otherwise general would be the way to go

@koppor

koppor commented May 16, 2023

Copy link
Copy Markdown
Member

+1 for Entry Editor settings

Maybe even as second option, because it is important

grafik

@koppor

koppor commented May 16, 2023

Copy link
Copy Markdown
Member

Code-wise, it is ok for me to have the preference split among different tabs. UI vs. model...

koppor
koppor previously approved these changes May 16, 2023
@koppor koppor added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 16, 2023
@ThiloteE

ThiloteE commented May 17, 2023

Copy link
Copy Markdown
Member

Maybe the name of the preference should be changed to

  • "Enable smart automatic search for linkable files"
  • or "Show linkable files in entry editor general tab", (I prefer this one)

or something of the like, because linking only happens, once users click on the file (or press ctrl + F7 i believe) click on the "link files" button on the left side or use "Quality > Automatically set file links (F7)". Then it also would make sense to have the preference under "linked files".

@Siedlerchr

Copy link
Copy Markdown
Member Author

This is only for the entry editor and affects the automatic linking. Manual linking is not affected

@ThiloteE

ThiloteE commented May 17, 2023

Copy link
Copy Markdown
Member
  1. With "Enable smart autolinking of files", files are not linked automatically. They are only "shown" in the entry editor, but not linked.

    image

    When you look at biblatex source tab, there is nothing in the file field.

  2. With "smart autolinking of files" disabled, those files are not shown in the entry editor anymore.

This behaviour is ok, but it makes me believe the name of the new preference does not fit the behaviour as described above.

@Siedlerchr

Copy link
Copy Markdown
Member Author

Maybe: Search and show unlinked files in the entry editor?

@Siedlerchr

Copy link
Copy Markdown
Member Author
grafik

@ThiloteE

ThiloteE commented May 17, 2023

Copy link
Copy Markdown
Member

I am fine too with "show unlinked files in entry editor" as all other options start with "show" as well.

@Siedlerchr Siedlerchr merged commit e6a2d4c into main May 17, 2023
@Siedlerchr Siedlerchr deleted the disableAutoLinkPrefs branch May 17, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: preferences component: ui status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to disable autolink files

3 participants