jabref icon indicating copy to clipboard operation
jabref copied to clipboard

[Windows] Allow drag and drop of symblinks

Open koppor opened this issue 10 months ago • 9 comments

JabRef allows to drag and drop a .bib file to open it:

Image

Also as new tab:

Image

This is not possible with file shortcuts / *.lnk files:

Image

But it should be possible, because JabRef can open the Shortcut.

koppor avatar Feb 04 '26 19:02 koppor

Hi! I’m a student and I’m interested in contributing. May I work on this issue?

mahmarani avatar Feb 06 '26 15:02 mahmarani

👋 Hey @mahmarani, looks like you’re eager to work on this issue — great! 🎉 It also looks like you don't know how to assign issues to yourself. Please read our CONTRIBUTING.md to find out how. It will also guide you in other aspects of contributing to JabRef.

jabref-machine avatar Feb 06 '26 15:02 jabref-machine

/assign-me

Carlos-Chong200 avatar Feb 08 '26 03:02 Carlos-Chong200

👋 Hey @Carlos-Chong200, thank you for your interest in this issue! 🎉

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! 🚀

jabref-machine avatar Feb 08 '26 03:02 jabref-machine

Hi @koppor, I apologize for not assigning myself to this issue earlier! It seems like a pure coincidence of timing.I’ve been working on a local implementation over the last couple of hours and just finished verification as the issue was being assigned.

@Carlos-Chong200, I’m really sorry about the overlap! I’ve actually gone ahead and implemented a PowerShell based resolution in FileUtil so that the .lnk target is correctly resolved to the actual .bib file before the app tries to open it. This prevents the binary parsing errors that occur when the system treats a .lnk file as plain text.

Is it alright if I submit the PR, you can possibly review it and let me know your thoughts... Sorry for the inconvenience again

faneeshh avatar Feb 08 '26 04:02 faneeshh

Hi @koppor, I apologize for not assigning myself to this issue earlier! It seems like a pure coincidence of timing.I’ve been working on a local implementation over the last couple of hours and just finished verification as the issue was being assigned.

@Carlos-Chong200, I’m really sorry about the overlap! I’ve actually gone ahead and implemented a PowerShell based resolution in FileUtil so that the .lnk target is correctly resolved to the actual .bib file before the app tries to open it. This prevents the binary parsing errors that occur when the system treats a .lnk file as plain text.

Is it alright if I submit the PR, you can possibly review it and let me know your thoughts... Sorry for the inconvenience again

No problem at all!

Carlos-Chong200 avatar Feb 08 '26 05:02 Carlos-Chong200

We think that this issue was fixed. Please head to https://builds.jabref.org/main to download a development build and try it out.

For any feedback, add a comment to the pull request at https://github.com/JabRef/jabref/pull/15053.

github-actions[bot] avatar Mar 16 '26 23:03 github-actions[bot]

Does not work on latest main

Image

koppor avatar Mar 24 '26 15:03 koppor

Update: Works if the linked file exists

koppor avatar Mar 24 '26 15:03 koppor