Increasing readability of tooltips (new-lines)
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
Environment: Windows 10 20H2 (64 bit) with Keepass 2.47
In the KeePass GUI If I hover over some notes in the notes column and the tooltip appears, newlines in the notes are replaced with spaces which makes things harder to read. Probably it would be a good idea to just keep the newlines here. Another issue is that those tooltips vanish automatically after 5 seconds which makes things very hard to read in time.
Select the entry and read the notes in the preview pane.
cheers, Paul
This does not work if the notes are referenced as the preview pane does then show the reference ID instead. (Also, this throws the question why we have tooltips if we shall not really use them)
Removing the line breaks allows a row in the Entry List to display an entry's data as a single line. Tooltips are a property of the Entry List. If a column is too narrow to display all of the data in that column, a tooltip can display more data. I agree it would be nice if the tooltip could retrieve data directly from an entry's fields rather than the Entry List, thereby preserving line breaks. However, I suspect that is not supported by the Entry List.
As you have observed, field references are not dereferenced in the Entry View.
However, field references can be dereferenced in the Entry List and Tooltips. Check Show dereferenced data (slow) in
Tools>Options>Interface(tab)>Entry List(section)I suspected this too and thus the reflection of the replaced newline with a space in the tooltip. I hope the .NET Framework does not strictly limit here and does allow custom tooltips so the original data can be used. Alternatively (but probably not a desired solution) cheesy solutions could be tried to achieve (faking tooltips; using an invisible entry with the original data; etc.).
I've implemented your second suggestion now: in most list views, tooltips are now displayed for a longer time.
Here's the latest development snapshot for testing:
https://keepass.info/filepool/KeePass_210513.zip
Thanks and best regards,
Dominik
With the tooltips now staying longer and https://sourceforge.net/p/keepass/bugs/2036/ being fixed the tooltips are now much better readable. The main issue so far I see now is that the tooltip content is moderately early cut of due to limited tooltip width which does also not utilize the full screen width.
But if support for newlines in tooltips will be implemented at some point in the future I guess this will also more or less take care of those issues.