Fix Jump to field (ctrl + j) in the entry editor doesn't work - #16639
Conversation
PR Summary by QodoFix jump-to-field (Ctrl+J) to add and focus hidden entry editor fields
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
1.
|
|
Thank you for the clean PR, the video, and the honest writeups. We will review this soon. |
|
Tried this PR on my machine. Mostly works. If users have custom entry-editor tabs with duplicated fields in the main tab, it will jump to the custom tab first, which I like. I found one problem: ctrl+j only works, if an entry editor tab is actually selected (e.g. by left-click). Maybe this was also the reason why I thought it was broken. How to reproduce:
The keybinding doesn't seem to be global or maybe this is a listener / sync issue between currently opened editor tab. |
@ThiloteE , Thanks for the feedback. After the fix, the handler now lives at the frame level. It stays a no-op while the entry editor is hidden, so behavior is otherwise unchanged. Could you give it another try? |
LoayTarek5
left a comment
There was a problem hiding this comment.
Solid work @adeifv.
just small things, also i see that no requirement exists for jump-to-field, so i think it worth adding
|
🤖 Generated with Claude Code I pushed 7def69b to this branch: with the entry editor closed, Ctrl+J did nothing at all. The new global handler in Repro that was broken: open Verified against the branch that the "Files and links" case from #16593 also works now: jumping to |
|
JabCon: This is on the milestone, thus we (hopefully) fix for ourselves. |
While the suggestion popup is open it receives Enter, so the dialog's OK button never fired and the jump silently did nothing. The completion event now confirms the dialog, and suggestions match by prefix instead of by substring, so the preselected suggestion is the one that was typed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4tFFzyEkmqSEVoEoyuvze
|
🤖 Generated with Claude Code Pushed 190841e: Enter in the dialog did nothing on the first press. While the autocompletion popup is open it is the popup's list that receives Enter (ControlsFX fires its "suggestion chosen" handler there), so Two changes in
Verified on this branch with |
A field name that does not exist yet was silently ignored. It is now created like the free-form add row does, and the dialog says so under the input while such a name is typed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4tFFzyEkmqSEVoEoyuvze
|
🤖 Generated with Claude Code Pushed 3a30381: a "Field will be created" hint under the input, shown while the typed name is not one of the offered fields. The hint would have been a lie on its own: Verified with |
No other tab can show a field it was not configured for, so with the Main tab hidden in the preferences the jump had no place to go and was dropped without a word. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4tFFzyEkmqSEVoEoyuvze
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4tFFzyEkmqSEVoEoyuvze
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4tFFzyEkmqSEVoEoyuvze
|
You ticked that you modified If you made changes that are visible to the user, please add a brief description to the |
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4tFFzyEkmqSEVoEoyuvze
|
🤖 Generated with Claude Code False alarm — your #16932 fixes the check. Until it lands, restoring the template wording of that one checklist line turns the job green. |
* main: (55 commits) Fix Jump to field (ctrl + j) in the entry editor doesn't work (JabRef#16639) Keep working on a shared database while its connection is down (JabRef#16814) Add missing type mappings to BASE search fetcher (JabRef#16926) Chore(deps): Bump org.slf4j:slf4j-api from 2.0.18 to 2.0.19 in /versions (JabRef#16924) Chore(deps): Bump org.slf4j:jul-to-slf4j in /versions (JabRef#16925) Chore(deps): Bump com.h2database:h2-mvstore in /versions (JabRef#16923) Chore(deps): Bump com.squareup.okio:okio-jvm in /versions (JabRef#16922) Capitalize internal field names in the UI ("Entrytype" column header) (JabRef#16894) Keep library entries sorted by id on insert (JabRef#16893) Reduce very big paddings and spacing, make the entry editor spacing more consistent across tabs (JabRef#16917) Fix table delimiter style in the contributor skill (JabRef#16915) Check for leftover diff3 conflict markers before committing a merge (JabRef#16913) Add BASE (Bielefeld Academic Search Engine) fetcher (JabRef#16530) Reconnect shared databases on startup (JabRef#16801) Css more unification (JabRef#16887) Document magic merge commit for stacked PRs in contributor skill (JabRef#16909) Close entry editor when switching to a library without a selected entry (JabRef#16892) Fill shared database login from a pasted connection URL (JabRef#16800) Demand step lists and screenshots instead of videos in PRs (JabRef#16902) Remove trailing blank line from labeler.yml (JabRef#16906) ...
Upstream #16639 added a flag suppressing the add-file dialog on the jump-to-field path; this branch removes that dialog entirely, so the flag has no behavior left to select and is dropped with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HL6coG8M47SRURZV2kBbob
Summary
The jump-to-field dialog now searches all known field names instead of only currently shown fields, and adds the field to the view if it isn't already visible (the same behaviour as clicking a "+" chip).
IMPORTANT:
Additionally,
All four issues are fixed too.
jabref-contrib-policy:4.2:reviewed:okSteps to test
As described in #16593
Screencast.from.2026-08-20.22-18-03.webm
Related issues and pull requests
Closes #16593
AI usage
GitHub Copilot by Student Pack, which only provides the Auto option, to assist with understanding certain concepts and implementing few parts. I also used the free tier of Claude Sonnet 5 available on its website.
Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)