From 0b8dfa12a8c74baf6223b430056c9f17ef343267 Mon Sep 17 00:00:00 2001 From: ankamde Date: Sat, 2 Aug 2025 14:20:19 +0200 Subject: [PATCH 1/3] Focus "Specify Bib(La)TeX" when Bib(La)TeX is in clipboard --- CHANGELOG.md | 1 + .../main/java/org/jabref/gui/newentry/NewEntryView.java | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 658069dba51..8ca69cce80e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,6 +67,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv ### Fixed +- We fixed an issue where "Specify Bib(La)TeX" tab was not focused when Bib(La)TeX was in the clipboard [#13597](https://github.com/JabRef/jabref/issues/13597). - We fixed dark mode of BibTeX Source dialog in Citation Relations tab. [#13599](https://github.com/JabRef/jabref/issues/13599) - We fixed an issue where the LibreOffice integration did not support citation keys containing Unicode characters. [#13301](https://github.com/JabRef/jabref/issues/13301) - We fixed an issue where the "Search ShortScience" action did not convert LaTeX-formatted titles to Unicode.[#13418](https://github.com/JabRef/jabref/issues/13418) diff --git a/jabgui/src/main/java/org/jabref/gui/newentry/NewEntryView.java b/jabgui/src/main/java/org/jabref/gui/newentry/NewEntryView.java index 0608bdf31cd..a6173daff6a 100644 --- a/jabgui/src/main/java/org/jabref/gui/newentry/NewEntryView.java +++ b/jabgui/src/main/java/org/jabref/gui/newentry/NewEntryView.java @@ -74,6 +74,9 @@ import jakarta.inject.Inject; public class NewEntryView extends BaseDialog { + private static final String BIBTEX_REGEX = "^@([A-Za-z]+)\\{,"; + private static final String LINE_BREAK = "\n"; + private NewEntryViewModel viewModel; private final NewEntryDialogTab initialApproach; @@ -164,6 +167,8 @@ private void finalizeTabs() { approach = NewEntryDialogTab.ENTER_IDENTIFIER; interpretText.setText(clipboardText); interpretText.selectAll(); + } else if (clipboardText.split(LINE_BREAK)[0].matches(BIBTEX_REGEX)) { + approach = NewEntryDialogTab.SPECIFY_BIBTEX; } else { approach = preferences.getLatestApproach(); } @@ -288,7 +293,7 @@ private void initializeLookupIdentifier() { Tooltip.uninstall(idText, idTextTooltip); } }); - + idText.setText(ClipBoardManager.getContents().trim()); idText.selectAll(); From ba5bea5ff3c44c64926518cd23c0335cafe53457 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Wed, 13 Aug 2025 20:38:19 +0200 Subject: [PATCH 2/3] fix changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f09168d8c7b..eefb995edcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,10 +72,11 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We introduced walkthrough functionality [#12664](https://github.com/JabRef/jabref/issues/12664) ### Fixed + - We fixed an issue where "Specify Bib(La)TeX" tab was not focused when Bib(La)TeX was in the clipboard [#13597](https://github.com/JabRef/jabref/issues/13597). - We fixed an issue whereby the 'About' dialog was not honouring the user's configured font preferences. [#13558](https://github.com/JabRef/jabref/issues/13558) - We fixed an issue where the Pagetotal column was sorting the values alphabetically instead of numerically. [#12533](https://github.com/JabRef/jabref/issues/12533) -- We fixed dark mode of BibTeX Source dialog in Citation Relations tab. [#13599](https://github.com/JabRef/jabref/issues/13599) +- We fixed the dark mode of the BibTeX Source dialog in the Citation Relations tab. [#13599](https://github.com/JabRef/jabref/issues/13599) - We fixed an issue where the LibreOffice integration did not support citation keys containing Unicode characters. [#13301](https://github.com/JabRef/jabref/issues/13301) - We fixed an issue where the "Search ShortScience" action did not convert LaTeX-formatted titles to Unicode. [#13418](https://github.com/JabRef/jabref/issues/13418) - We fixed an issue where LaTeX file directories were not properly shared between different users on the same host. [#9990](https://github.com/JabRef/jabref/issues/9990) From e5841d9aaba7f5e328c1c39703a0e21b6e20d263 Mon Sep 17 00:00:00 2001 From: ankamde Date: Thu, 14 Aug 2025 18:49:49 +0200 Subject: [PATCH 3/3] Fix CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eefb995edcd..2fab37c1c3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,7 +73,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv ### Fixed -- We fixed an issue where "Specify Bib(La)TeX" tab was not focused when Bib(La)TeX was in the clipboard [#13597](https://github.com/JabRef/jabref/issues/13597). +- We fixed an issue where "Specify Bib(La)TeX" tab was not focused when Bib(La)TeX was in the clipboard [#13597](https://github.com/JabRef/jabref/issues/13597) - We fixed an issue whereby the 'About' dialog was not honouring the user's configured font preferences. [#13558](https://github.com/JabRef/jabref/issues/13558) - We fixed an issue where the Pagetotal column was sorting the values alphabetically instead of numerically. [#12533](https://github.com/JabRef/jabref/issues/12533) - We fixed the dark mode of the BibTeX Source dialog in the Citation Relations tab. [#13599](https://github.com/JabRef/jabref/issues/13599)