You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: fetcher from clipboard and auto-select identifier type if valid (#13111)
* feat: fetcher from clipboard and auto-select identifier type if valid
* test: add unit tests for identifier detection (DOI, ISBN, arXiv, RFC)
* Update Changelog
* test: rewrite identifier detection tests to match JabRef code style
* test: update identifier detection tests to follow JabRef assertion style
* Refactor: Extract identifier detection and fetcher matching logic in NewEntryView
* Test: Move identifier detection unit tests to CompositeIdFetcherTest
* docs: Document and trace requirement for identifier clipboard autofocus behavior
* docs: fix Markdown lint errors in focus.md
* refactor: move identifier recognition logic to Identifier.from()
- Moved getIdentifier() from CompositeIdFetcher to Identifier as static factory method 'from(String)'
- Updated all call sites to use Identifier.from(...)
* refactor: use structured check for ISBN fetcher with module export
- Replaced string matching with instanceof IsbnFetcher in NewEntryView
- Exported isbn fetcher package from jablib to enable module access
---------
Co-authored-by: Christoph <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
21
21
- We added a new button to toggle the file path between an absolute and relative formats in context of library properties. [#13031](https://github.com/JabRef/jabref/issues/13031)
22
22
- We added automatic selection of the “Enter Identifier” tab with pre-filled clipboard content if the clipboard contains a valid identifier when opening the “Create New Entry” dialog. [#13087](https://github.com/JabRef/jabref/issues/13087)
23
23
- We added an "Open example library" button to Welcome Tab. [#13014](https://github.com/JabRef/jabref/issues/13014)
24
+
- We added automatic detection and selection of the identifier type (e.g., DOI, ISBN, arXiv) based on clipboard content when opening the "New Entry" dialog [#13111](https://github.com/JabRef/jabref/pull/13111)
24
25
- We added support for import of a Refer/BibIX file format. [#13069](https://github.com/JabRef/jabref/issues/13069)
Copy file name to clipboardExpand all lines: docs/requirements/focus.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,20 @@ This provides immediate keyboard interaction capabilities (such as Ctrl+V for pa
13
13
14
14
Needs: impl
15
15
16
+
### Automatic Identifier Detection and Focus in New Entry Dialog
17
+
`req~newentry.clipboard.autofocus~1`
18
+
19
+
When the "New Entry" dialog is opened:
20
+
21
+
- If the clipboard contains a valid identifier (e.g., DOI, ISBN, ArXiv, RFC):
22
+
23
+
- The dialog automatically switches to the "Enter Identifier" tab.
24
+
- The identifier input field is automatically filled with the clipboard content.
25
+
- The field receives keyboard focus and its content is selected.
26
+
- The corresponding fetcher (e.g., DOI, ISBN) is automatically selected based on the detected identifier type.
27
+
28
+
This behavior streamlines the process of creating new entries by allowing users to copy an identifier and open the dialog, without needing to manually select the input field, switch tabs, or choose a fetcher manually.
0 commit comments