jabref icon indicating copy to clipboard operation
jabref copied to clipboard

(Idea) Move Open Office Preferences to a dedicated Preference tab

Open subhramit opened this issue 4 months ago • 34 comments

Currently, we let users interact with all LibreOffice related preferences in the "Settings" of the LibreOffice Integration panel.

After https://github.com/JabRef/jabref/pull/16315 and also upcoming from https://github.com/JabRef/jabref/issues/16349, it can be established that OO/LO integration now has a lot of preferences.

Maybe they deserve their own dedicated tab in File -> Preferences?

With a lighter number of preferences, our current OCR feature has its own preference tab (see https://github.com/JabRef/jabref/pull/15990). This allows the OCR user to easily visualize the selected ocrmypdf path.

In LO, we have a pandoc path which can similarly be auto-detected or set manually. User should either get a notification informing them of the path selected, so that they can verify that they didn't make a mistake, or this full migration of preferences UI into a tab should be done so that they can always see the paths (like OCR).

subhramit avatar Jul 25 '26 10:07 subhramit

May need devcall alignment.

subhramit avatar Jul 25 '26 10:07 subhramit

How path is shown in OCR, for reference:

Image

subhramit avatar Jul 25 '26 10:07 subhramit

/assign-me

obihamza avatar Aug 01 '26 10:08 obihamza

⚠️ Issue Already Assigned

Hi @obihamza, this issue is currently assigned to @jabref-machine.

[!NOTE] If no progress is made within 8 days, the issue will be automatically unassigned.

Options for contributors
  • Wait for availability: The issue may become available if auto-unassigned
  • Collaborate: You can ask the assignee if they want help
  • Maintainer assistance: A maintainer can add you as co-assignee if appropriate

jabref-machine avatar Aug 01 '26 10:08 jabref-machine

Hi! I'd like to work on this issue as my first contribution to JabRef.

I tried /assign-me, but it says the issue is already assigned to @jabref-machine, while the project status shows "Free to take".

Is this issue available for me to work on? Thanks!

obihamza avatar Aug 01 '26 10:08 obihamza

⚠️ Issue Already Assigned

Hi @obihamza, this issue is currently assigned to @jabref-machine.

[!NOTE] If no progress is made within 8 days, the issue will be automatically unassigned.

Options for contributors
  • Wait for availability: The issue may become available if auto-unassigned
  • Collaborate: You can ask the assignee if they want help
  • Maintainer assistance: A maintainer can add you as co-assignee if appropriate

jabref-machine avatar Aug 01 '26 10:08 jabref-machine

@obihamza this needs a bit of discussion to finalize, but for now, if you are interested - don't move the preferences, but on setting the path manually, add the path location to the toast notification, like we do in auto-detect.

Image

subhramit avatar Aug 01 '26 10:08 subhramit

@obihamza this needs a bit of discussion to finalize, but for now, if you are interested - don't move the preferences, but on setting the path manually, add the path location to the toast notification, like we do in auto-detect.

Image

Instead of pandoc detected at:<path>. for manual, the message should be pandoc path set at:<path>

cc @pluto-han

subhramit avatar Aug 01 '26 11:08 subhramit

Thanks for the clarification! I'd be happy to work on that.

I'll start by looking into the manual path selection and update the toast notification to include the selected path, similar to the auto-detect behavior.

obihamza avatar Aug 01 '26 11:08 obihamza

Hi @subhramit, I checked the current main branch and noticed that the manual Pandoc path selection already includes the selected path in the toast:

Pandoc path set to: %0

It seems this was added as part of #16315.

Is there another part of this issue that I can help with, or would you recommend that I pick another good first issue?

obihamza avatar Aug 01 '26 13:08 obihamza

@pluto-han do you remember what you wanted in https://github.com/JabRef/jabref/pull/16315#issuecomment-5064570099?

I picked code from ocr and never tried manual selection myself so missed the part this is already there - did the path display work for you

subhramit avatar Aug 01 '26 13:08 subhramit

Meanwhile @obihamza feel free to take any other issue

subhramit avatar Aug 01 '26 13:08 subhramit

Alternatively, you can just shift the Pandc path auto detect, manual selection, current path display UI to JabRef's preferences, just like OCR's engines

Leave the other preferences ui in settings as-is

subhramit avatar Aug 01 '26 13:08 subhramit

Also for safety, when no path is set, add a warning with yellow text for safety in the bst styles tab of the LibreOffice integration which says "Note: you have to select pandoc path in preferences to use these styles"

@pluto-han will guide you

subhramit avatar Aug 01 '26 13:08 subhramit

Thanks for the clarification! I’ll work on moving the Pandoc path auto-detection, manual selection, and current path display to JabRef Preferences, while leaving the other OpenOffice/LibreOffice settings as they are.

I’ll also add the warning in the BST styles tab when no Pandoc path is configured.

@pluto-han I may reach out if I need guidance. Thanks!

obihamza avatar Aug 01 '26 14:08 obihamza

@pluto-han do you remember what you wanted in #16315 (comment)?

I picked code from ocr and never tried manual selection myself so missed the part this is already there - did the path display work for you

Now it only displays Pandoc path set to: Pandoc. But I prefer Pandoc path set to: <concrete path>. Otherwise I may set to a weird path with the .exe renamed to Pandoc.exe or other edge cases.

pluto-han avatar Aug 01 '26 18:08 pluto-han

Now it only displays Pandoc path set to: Pandoc. But I prefer Pandoc path set to: <concrete path>. Otherwise I may set to a weird path with the .exe renamed to Pandoc.exe or other edge cases.

Even in the manual case? For auto case, that is expected because in case of Windows the path is dependent on %LOCALAPPDATA% (which is dependent on things like the user name) so we use the windows-set PATH variable instead, which is pandoc.

subhramit avatar Aug 01 '26 20:08 subhramit

Even in the manual case?

For manual case, is it necessary to check the validity of the path? e.g. If not pandoc, then warn users. (at least check if the file name is pandoc.xxx)

pluto-han avatar Aug 01 '26 20:08 pluto-han

For manual case, is it necessary to check the validity of the path? e.g. If not pandoc, then warn users. (at least check if the file name is pandoc.xxx)

I am not sure because again, the way I have seen executables evolve over time, before 64 bit systems came and software began to be developed for them, there was just x.exe After that, x_32.exe, x_64.exe began. maybe someday _128 is going to be a thing, I don't know. Python put python3 instead of sticking to the old python Hence this is not deterministic - as long as the onus is on the user and he can can choose it himself and see what he chose, we can have the flexibility for cases we cannot foresee. If a bug report comes, it will never be because existing pandoc is not working - it will be because of a wrong executable chosen - which is expected behavior - so we can close the bugs.

subhramit avatar Aug 01 '26 20:08 subhramit

Hi, before continuing with the PR, I wanted to clarify the project's policy regarding AI-assisted contributions.

I have been using ChatGPT as a learning and development assistant while working on this issue — mainly to help me understand the codebase, trace dependencies, suggest implementation approaches, and troubleshoot build/checkstyle issues. I review the changes, run and test them locally, and I am working through the implementation myself.

Is this kind of AI-assisted workflow acceptable for a JabRef contribution, or would you prefer that contributions be developed without AI assistance?

I want to make sure I follow the project's contribution policy before submitting the PR. Thanks!

obihamza avatar Aug 02 '26 14:08 obihamza