Bug 170978 - Edit Dictionary should filter the word list
Summary: Edit Dictionary should filter the word list
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: shlokjk1234
URL:
Whiteboard: target:26.8.0 inReleaseNotes:26.8
Keywords: difficultyInteresting, easyHack
Depends on:
Blocks: Options-Dialog-Language
  Show dependency treegraph
 
Reported: 2026-02-23 11:12 UTC by wdmlist
Modified: 2026-06-12 16:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Edit dictionary (55.72 KB, image/png)
2026-03-20 07:50 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wdmlist 2026-02-23 11:12:52 UTC
Description:
I didn't see these specific requests in the feature requests.

First one is to place a search bar in the custom dictionary to locate previously added entries to either edit them or remove.

Second request is to have the undo button work when you mistakenly click 'add to dictionary' instead of something else.

Steps to Reproduce:
1. Spell Check F7
2. Add a word
3. Go to TOols > Options > Languages and Locales > Writing Aids

Actual Results:
I didn't see these specific requests in the feature requests.

First one is to place a search bar in the custom dictionary to locate previously added entries to either edit them or remove.

Second request is to have the undo button work when you mistakenly click 'add to dictionary' instead of something else.

Expected Results:
I didn't see these specific requests in the feature requests.

First one is to place a search bar in the custom dictionary to locate previously added entries to either edit them or remove.

Second request is to have the undo button work when you mistakenly click 'add to dictionary' instead of something else.


Reproducible: Always


User Profile Reset: No

Additional Info:
I didn't see these specific requests in the feature requests.

First one is to place a search bar in the custom dictionary to locate previously added entries to either edit them or remove.

Second request is to have the undo button work when you mistakenly click 'add to dictionary' instead of something else.
Comment 1 bnhep 2026-03-19 15:18:34 UTC
Thank you for reporting this, since this is an enhancement request I will adding needsUXEval and CC'ing the UX team for further input.
Comment 2 Heiko Tietze 2026-03-20 07:50:11 UTC
Created attachment 206302 [details]
Edit dictionary

What's wrong with this dialog/interaction? See also Edit under https://help.libreoffice.org/26.2/en-US/text/shared/optionen/01010400.html
Comment 3 wdmlist 2026-03-20 15:30:22 UTC
Hello, thank you for looking at it quickly. I do see now that I can search for words in the edit dialog. I have been using the app for a number of years. Perhaps I missed when it was added. Maybe for user clarity you could add the word 'search' to the edit dialog to make it more obvious. The other part of this request is to have the undo button action. I just tested. I entered a misspelled word I added it to the dictionary. I verified that that word is in the User Dictionary. Then I tried to 'undo' (CTRL + Z) the last action. It did not undo the add to user dictionary. This would be handy as when going through a long document on a first edit mistakes can happen and 'undoing' the add to user dictionary would be much quicker then going to the 'edit' menu locating the word and removing it.
Comment 4 QA Administrators 2026-03-21 03:15:02 UTC Comment hidden (obsolete)
Comment 5 Heiko Tietze 2026-03-23 09:38:37 UTC
(In reply to wdmlist from comment #3)
> I can search for words in the edit dialog.
The input field has no auto completion (you type as few characters and the it's completed for the first matching entry of the list) nor does the list of results is filtered accordingly. Why do you think that's needed?

> The other part of this request is to have the undo button action.
Dialogs never have Undo capabilities. And in fact you can just delete an entry, if entered mistakenly.
Comment 6 wdmlist 2026-03-24 19:46:34 UTC
Hello, for adding the search label: My custom dictionary is probably several hundreds of words in different languages. Knowing where and how the search works will help users understand how to locate words that have been misspelled after they realize that they have added an incorrect word. In the work that I do I take clips from news articles and while not common it does happen where the news article author makes a typo and a correction has to be files with the news agency. If I then add a word that is incorrectly spelled and I later realize this, the quicker and easier that I can locate the word the better. It's an ease of use change to label the search bar with helpful text find or search or please enter first x characters to locate. While I know the functionality now, it would likely help others with such user dictionary quickly locate items, as when you have such a large one manually scrolling through entries is difficult with the window slider becoming a small dot.

As for the dialogues never producing an undo: I have a question, is this a technical limitation or a programming resources limitation? I know that MS Word does allow you to undo any actions in their spell check dialogue. It is again an ease of use feature to be able to simply undo spell checker actions rather than go into the tools menu, then options, then Language, then Writing aids, then Edit, then find the word and remove it.

I have been running a project since around 2019/2020 and have over 20K paragraphs which have mostly all been run through the spell checker and it does sometimes happen that things get added by mistake. I often have to do this project after hours and when I'm not fully aware/awake, so anything that can help speed up the process is welcomed.
Comment 7 Heiko Tietze 2026-03-25 09:20:56 UTC
So let's make the Edit field filter the word list. Sounds like an easy hack to me. Hossein, do you have code pointer?


(In reply to wdmlist from comment #6)
> As for the dialogues never producing an undo: I have a question, is this a
> technical limitation or a programming resources limitation? I know that MS
> Word does allow you to undo any actions in their spell check dialogue.
It does not. File > Options > Proofing: Custom Dictionary: CUSTOM.DIC - add a word and try to undo. The dialog behaves exactly as we do.

During the spell-checking, Undo indeed removes the word from the dictionary and we don't do it. This is tracked in bug 118266.
Comment 8 wdmlist 2026-03-27 04:58:41 UTC
Cheers, thanks for quick responses.
Comment 9 Commit Notification 2026-05-06 16:05:42 UTC
shlok3640 committed a patch related to this issue.
It has been pushed to "master":

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

tdf#170978 cui: added live search filter to custom dictionary

It will be available in 26.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 10 Heiko Tietze 2026-05-07 08:10:32 UTC
Shlok, please resolve as fixed.
Comment 11 shlokjk1234 2026-05-07 10:51:16 UTC
Closing this issue. Thanks for the reviews.