Bug 506690

Summary: Possible issue/Feature request: show/edit annotation content in sidebar
Product: [Applications] okular Reporter: Thomas Bernat <tbernat82>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thomas Bernat 2025-07-06 19:38:54 UTC
First, it would be nice to be able to see the full annotation's content in the Annotations sidebar, instead of the type of annotation used (Highlight with Comment, for example) followed by a cropped part of the text that fits in the sidebar (which is the only display I can get). I am not sure if the incomplete display should be the expected behavior, or if I am experiencing a bug.
Second, as a request, one could edit the text directly in the sidebar, similarly to adobe acrobat reader, by double clicking the annotation.

STEPS TO REPRODUCE (the possible issue)
1. Highlight text
2. Create an associated popup note by double clicking, and insert text, e.g. "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus libero nisl, vehicula nec convallis at, tempus non eros."
3. The Annotations sidebar when extended at the maximum shows "Highlight with Comment: Lorem ipsum dolor sit amet, consectetur adipisci..." , even when clicking "Expand all elements"

EXPECTED RESULT (regarding the possible issue)
By default, the whole content should be displayed, on several lines if needed, i.e. "Highlight with Comment: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus libero nisl, vehicula nec convallis at, tempus non eros.". 
A button could allow to collapse all the annotations (therefore displaying only one line per annotation, which is the current state). In fact, there are two buttons: "Expand all elements/Collapse all elements", at the right bottom of the sidebar that should perhaps do this, but they don't do anything for me, so that might be an issue.