Bug 148447 - Cannot "Replace All" when also searching comments
Summary: Cannot "Replace All" when also searching comments
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 148625 (view as bug list)
Depends on:
Blocks: Find-Search Writer-Comments
  Show dependency treegraph
 
Reported: 2022-04-07 14:12 UTC by Buovjaga
Modified: 2025-11-15 09:51 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Document with repro instructions and some comments (14.56 KB, application/vnd.oasis.opendocument.text)
2025-11-15 09:51 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2022-04-07 14:12:59 UTC
Currently, we can only replace one by one, when the comments option is selected in Writer find & replace dialog. This means that sanitising comments becomes very difficult as I noticed in bug 148333 (have to edit content.xml).
Comment 1 Dieter 2022-04-23 04:57:31 UTC
I support this enhancement request, but I'm not a member of design-team

cc: Design-Team
Comment 2 Heiko Tietze 2022-04-25 09:28:26 UTC
Don't see a reason why Replace All shouldn't be available. The opposite is true from the UX POV.
Comment 3 Timur 2023-11-15 12:03:31 UTC
*** Bug 148625 has been marked as a duplicate of this bug. ***
Comment 4 Eyal Rozenberg 2023-11-15 23:04:15 UTC
A missing piece of the implementation of a feature is a bug, rather than a potential for enhancement...
Comment 5 QA Administrators 2025-11-15 03:13:28 UTC Comment hidden (obsolete)
Comment 6 Heiko Tietze 2025-11-15 07:36:32 UTC
The extension "Change All Comments" at https://extensions.libreoffice.org/en/extensions/show/99444 could serve the envisioned purpose.
Comment 7 Eyal Rozenberg 2025-11-15 09:47:54 UTC
Bug still manifests with:

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d2def868cb3ac5a7e538a911e83d7d907a2ec794
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: CL threaded

(In reply to Heiko Tietze from comment #6)
> The extension "Change All Comments" at
> https://extensions.libreoffice.org/en/extensions/show/99444 could serve the
> envisioned purpose.

No, it could not, because it replaces the entire text of the comment, and of all comments rather than the ones matching the search pattern.

Regardless - there's no reason why Writer itself should refuse to allow a "Replace all". The same logic which applies to Replacing-all in the text applies to the comments as well. And the UI is already in place, too.
Comment 8 Eyal Rozenberg 2025-11-15 09:51:32 UTC
Created attachment 203994 [details]
Document with repro instructions and some comments

To reproduce - in a case where there are both comments and text occurrences of the search term:

0. Open bug_148447.odt
1. Open the Find & Replace dialog
2. Enter "hello" as the string to find
3. Enter "goodbye" as the replacement string
4. Check the "comments" checkbox

You will note the "Replace All" button becoming inactive (grayed-out).