Bug 143157 - Alphabetical index field: on mouse-over include keys in tooltips
Summary: Alphabetical index field: on mouse-over include keys in tooltips
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.3.2 release
Hardware: All All
: medium enhancement
Assignee: Andreas Heinisch
URL:
Whiteboard: target:25.8.0 inReleaseNotes:25.8 tar...
Keywords:
Depends on:
Blocks: TableofContents-Indexes Tooltip
  Show dependency treegraph
 
Reported: 2021-07-02 12:31 UTC by R. Green
Modified: 2025-07-08 14:33 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
LO Writer file showing how popups appear over index entries in text (13.05 KB, application/vnd.oasis.opendocument.text)
2023-02-23 10:47 UTC, R. Green
Details
Current build 26.2 (111.18 KB, image/png)
2025-07-02 16:59 UTC, Andreas Heinisch
Details
Test case 2 (19.84 KB, application/vnd.oasis.opendocument.text)
2025-07-02 18:04 UTC, Olivier Hallot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2021-07-02 12:31:45 UTC
Version: 7.1.3.2 / LibreOffice Community
Build ID: 47f78053abe362b9384784d31a6e56f8511eb1c1
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded

If you mouse over an alphabetical index field (marked grey) in the text, the "Entry" text appears in the tooltip.

But in real-life indexes the "Entry" text may appear not only on its own but also with a 1st Key or 2nd Key (see "Insert Index Entry" dialogue). The tooltip should make this clear so that the user can be sure s/he is opening the correct field for editing.

SUGGESTION: Incorporate the text of the 1st key and 2nd key as well in alphabetical index field tooltips. Perhaps the tooltip could look like this:

1st key > 2nd Key > Entry
Comment 1 R. Green 2021-07-02 12:40:14 UTC
Oops. I think that should read "2nd key > 1st key > Entry"?
Comment 2 Buovjaga 2021-07-17 14:17:19 UTC
Could you attach an example file, so it is easy for everyone to test?
Comment 3 Dieter 2022-08-26 06:49:32 UTC
(In reply to Buovjaga from comment #2)
> Could you attach an example file, so it is easy for everyone to test?

=> NEEDINFO

Please also retest with actual version of LO (LO 7.4)
Comment 4 QA Administrators 2023-02-23 03:25:23 UTC Comment hidden (obsolete)
Comment 5 R. Green 2023-02-23 10:47:58 UTC
Created attachment 185543 [details]
LO Writer file showing how popups appear over index entries in text

Version: 7.1.5.2 / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

1. Open the attached example file which shows a short passage of text and the accompanying index.
2. Hover the mouse cursor over the grey marks before "excavation" or "uncovered".
3. In each case open the Index entry dialog (Edit > Reference > Index entry) so you can check the actual wording of each entry.
4. Compare the popup display to the entry in the aphabetical index at the end of the text.

RESULT: The popup only shows the lowest level index heading.
EXPECTED RESULT: Popup should show both the lowest-level heading and any high-level key(s)
Comment 6 R. Green 2023-02-23 10:51:58 UTC
Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded

Same result here.
Comment 7 Dieter 2023-02-26 06:38:45 UTC
For me that's a reasonable enhancement request:

Steps:
1. Open attachment 185543 [details]
2. Move cursor at the right of grey index mark before "excavation" (sidenote: very difficult make toltip appear. A better result is reached, if word is selected when creating a ne index entry)

Actual result:
Tooltip "excavations"

Enhancement:
Tooltip: "Keston > excavations"

=> NEW
Comment 8 Commit Notification 2025-01-30 12:50:26 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e575acbb93c325648d3ad16ec97661dfa1f3178a

tdf#143157 - Include first and secondary keys in index fields

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Olivier Hallot 2025-07-02 14:27:15 UTC
For documentation purposes I'm testing this feature but can't see it working on master build with the supplied file attached.

1st and 2nd keys not visible in tooltip.


Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 46a1616172010c1568cad9da98898a75703b2e1b
CPU threads: 12; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pt-BR (pt_BR); UI: pt-BR
Calc: threaded
Comment 10 Andreas Heinisch 2025-07-02 16:59:33 UTC
Created attachment 201605 [details]
Current build 26.2

The indexes are very hard to activate. Imho another bug report.


Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 890513107e171f8e4e623a747f2ec80969ef4d92
CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL threaded
Comment 11 Andreas Heinisch 2025-07-02 17:52:00 UTC
Related to bug 148632. When testing the tooltips you have to really be in the top right corner of the index mark. Otherwise, it is pure luck to have a tooltip.
Comment 12 Olivier Hallot 2025-07-02 18:04:06 UTC
Created attachment 201606 [details]
Test case 2

The tooltip is indeed hard to appear, but the case here is the word "entrance" which is also part of the alphabetical index and does not display the 1st and 2nd keys in tooltip as expected.
Comment 13 Commit Notification 2025-07-08 14:32:25 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c0c84b9c394f63f53f7ea55cbe7f6808b78e7f46

tdf#143157 - Include expanded text in index fields

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Andreas Heinisch 2025-07-08 14:33:33 UTC
Thank you very much for testing Olivier!