Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry editor: Text in entry row is not being wrapped #5461

Open
AEgit opened this issue Oct 17, 2019 · 17 comments
Open

Entry editor: Text in entry row is not being wrapped #5461

AEgit opened this issue Oct 17, 2019 · 17 comments

Comments

@AEgit
Copy link

AEgit commented Oct 17, 2019

JabRef 5.0.0-dev--2019-10-17----e81d58c51
Windows 10 10.0 amd64
Java 12.0.2

The current entry editor does not wrap text in entry rows. This leads to a massive waste of screen space. Text in entry rows should be wrapped (= do an automatic return) to reduce the waste of screen space.

This problem has also been reported here:
#5244 (comment)

For examples of the waste of screen space see here:
#5244 (comment)
#5244 (comment)

@AEgit
Copy link
Author

AEgit commented Oct 18, 2019

The following tickets are connected to this issue:
#4479
#555

The following changes might be have caused the problem in the first place:
#4126 --> Title/author/instituition/year field were changed to single-line fields: In my opinion, at least the title and the author field should be multiline fields (but to be honest, I am not sure, whether these changes refer to the entry editor or to something else)

@matthiasgeiger
Copy link
Member

The problem is more or less the difference between display and serialization: "Multiline fields" are fields that have a lot of contents and line breaks should be preserved during saving and loading (e.g. abstract). Other fields like author are per definition "single line fields" as there are no line breaks allowed.

What it makes a bit difficult is the technical handling in the user interface when a "single line field" has to much content - as automated wrapping (at least in the past) also allowed for entering line breaks. However this should not be a big problem to be solved...

@rousselm
Copy link

I just installed
JabRef 5.0--2020-03-06--2e6f433
Mac OS X 10.13.6 x86_64
Java 13.0.2

I have for many years been using the standard LaTeX field annote to keep notes on my reading. I set up JabRef so that the annote field shows up in the Review tab instead of whatever the default is. (It's been so long since I set this up that I'm not sure anymore.) So "Set up general fields" says (among other things)
Review:annote

The problem is that annote doesn't wrap as I'm typing anymore. Instead, my notes end up on one long line (in the entry window) that scrolls off the edge of the screen. I suspect it's the same problem as above (or at least, in the same family), which is why I'm commenting here.

@ilippert
Copy link
Contributor

The problem is that annote doesn't wrap as I'm typing anymore. Instead, my notes end up on one long line (in the entry window) that scrolls off the edge of the screen. I suspect it's the same problem as above (or at least, in the same family), which is why I'm commenting here.

See #4373 for bug of viewing and storing multiline fields

@tgkolda
Copy link

tgkolda commented May 27, 2020

I am really having trouble viewing and editing author and title fields that go outside the box because they no longer wrap in the edit box. Is there a fix planned for this?

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2020

This issue has been inactive for half a year. Since JabRef is constantly evolving this issue may not be relevant any longer and it will be closed in two weeks if no further activity occurs.

As part of an effort to ensure that the JabRef team is focusing on important and valid issues, we would like to ask if you could update the issue if it still persists. This could be in the following form:

  • If there has been a longer discussion, add a short summary of the most important points as a new comment (if not yet existing).
  • Provide further steps or information on how to reproduce this issue.
  • Upvote the initial post if you like to see it implemented soon. Votes are not the only metric that we use to determine the requests that are implemented, however, they do factor into our decision-making process.
  • If all information is provided and still up-to-date, then just add a short comment that the issue is still relevant.

Thank you for your contribution!

@AEgit
Copy link
Author

AEgit commented Dec 10, 2020

The issue persists in:

JabRef 5.2--2020-12-09--d1fb9e2
Windows 10 10.0 amd64
Java 14.0.2

@AEgit
Copy link
Author

AEgit commented Jun 9, 2021

The issue persists in:

JabRef 5.3--2021-06-08--9d1c448
Windows 10 10.0 amd64
Java 16.0.1
JavaFX 16+8

@tgkolda
Copy link

tgkolda commented Jun 9, 2021

Yes, the issue is persisting for me too, and I would very much like to see it resolved. For instance, the Title field does not wrap, but the abstract field does even though the "source" does not have line breaks. I'm using the latest official release...

JabRef 5.2--2020-12-24--6a2a512
Windows 10 10.0 amd64
Java 14.0.2

@AEgit
Copy link
Author

AEgit commented Apr 10, 2022

JabRef 5.6--2022-04-08--a6489cb
Windows 10 10.0 amd64
Java 17.0.2
JavaFX 18+12

The issue persists in the current dev version. Maybe as a workaround people can use the "BibTex source" tab and edit the author, title, etc. fields there directly. I reckon this is not really the way JabRef is supposed to be used (?), but otherwise it is impossible to edit entries that contain slightly longer titles or several authors.

@koppor koppor moved this to Normal priority in Features & Enhancements Nov 7, 2022
@wujastyk
Copy link

wujastyk commented Feb 5, 2023

JabRef 5.10--2023-02-01--611baac
Linux 5.15.0-58-generic amd64
Java 19.0.2
JavaFX 19+11

The "multiline" selector in "customize entry types" doesn't seem to do anything. And if you return to that menu, the ticked box is unticked again.

@Siedlerchr
Copy link
Member

@wujastyk For me it works fine:

grafik

grafik

@wujastyk
Copy link

wujastyk commented Feb 7, 2023

@Siedlerchr Hmm. It works for me too, in @book entries. But I have a special database (used with Glossaries) that has only two fields. And that doesn't work. The setting tick-box just silently unticks itself and the field is never wrapped. See attached video.

jabref-multilinefields.mp4

@Siedlerchr
Copy link
Member

Ah okay, thanks, that narrows it down. So it seems like it works for Standard Entry types, but not for custom entry types.
I will try to investigate this in the next days!

@Siedlerchr
Copy link
Member

@wujastyk Found the issue and it's now solved (just merged)

@wujastyk
Copy link

Thank you! @Siedlerchr

@AEgit
Copy link
Author

AEgit commented Feb 23, 2023

JabRef 5.10--2023-02-22--76b221d
Windows 10 10.0 amd64
Java 19.0.2
JavaFX 19+11

Note, that the original issue reported here still persists in the current JabRef dev version. The current workaround for the issue appears to be to set affected fields to "Multiline" in the "Customize entry types" menu. But I guess that is not the final solution (?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Normal priority
Development

No branches or pull requests

8 participants