Bug 164322 - Context menu of cells in AutoFilter-filtered column should offer clearing the filter
Summary: Context menu of cells in AutoFilter-filtered column should offer clearing the...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.3.2 release
Hardware: All All
: medium enhancement
Assignee: Ujjawal Kumar
URL:
Whiteboard: target:25.8.0
Keywords: difficultyInteresting, easyHack, skillCpp, topicUI
Depends on:
Blocks: Context-Menu UNO-Command-New AutoFilter
  Show dependency treegraph
 
Reported: 2024-12-13 18:35 UTC by Eyal Rozenberg
Modified: 2025-03-20 20:49 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-12-13 18:35:31 UTC
When I open the context menu in a cell in a column within an AutoFilter range, and that column is non-trivially filtered - I think it would be nice if I could clear the filter from that menu.

One might as "does that merit putting on the context menu"? Well, if "Data Validation" is in there, I don't see why this shouldn't... and the context menu is not that chock-full of items.
Comment 1 Regina Henschel 2024-12-13 18:58:14 UTC
The Autofilter works on the entire column. I do not see, why it should be changed from the context menu of a single cell. For clearing the filter the item "Clear Filter" in the drop-down of the filter is sufficient.

Or do I not understand your request?
Comment 2 Roman Kuznetsov 2024-12-14 18:57:16 UTC
I had bug 123560, not about the same but it's apparently near
Comment 3 Eyal Rozenberg 2024-12-14 23:32:41 UTC
(In reply to Regina Henschel from comment #1)
> The Autofilter works on the entire column. I do not see, why it should be
> changed from the context menu of a single cell. 

Because the cell is part of that column.

> For clearing the filter the
> item "Clear Filter" in the drop-down of the filter is sufficient.

That works, certainly, but - it's more convenient if you don't have to scroll up, clear the filter, and possibly scroll down again.
Comment 4 Heiko Tietze 2024-12-16 10:42:08 UTC
I can get used to the idea.
Comment 5 BogdanB 2024-12-27 19:58:38 UTC
In Google Drive is right click on Autofilter numbers/area, and Remove filter.
Comment 6 Heiko Tietze 2025-01-13 09:13:11 UTC
We discussed the topic in the design meeting.

Clearing the AF is easy to achieve via the AF-widget. However, when scrolled down it it not reachable anymore and freezing the first row might also not what users want. Plus, adding a UNO command wont hurt the usability. So the proposal is to provide access to the function per dedicated UNO command with user customization.

The task is not too difficult and interestingly easy to realize without code pointer.
Comment 7 Ujjawal Kumar 2025-03-09 18:34:12 UTC
What do we need to implement here? Does "Reset Filter" work here or a completely new uno command should be implemented which only clears autofilter?
Comment 8 Heiko Tietze 2025-03-10 07:30:20 UTC
(In reply to Ujjawal Kumar from comment #7)
> What do we need to implement here? Does "Reset Filter" work here or a
> completely new uno command should be implemented which only clears
> autofilter?

Add a new UNO command that runs the AF part to reset the filter.
Comment 9 Commit Notification 2025-03-20 16:56:34 UTC
Ujjawal Kumar committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6b67355f1275ea296a6a74c8f4d6a9060ff2f8a1

tdf#164322 Add "Clear AutoFilter" option in context menu of cells

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 10 BogdanB 2025-03-20 20:25:32 UTC
Wow, thanks, Ujjawal Kumar. It is working well.

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d986127690cf6b61e8973ee37e009a1f0dbbc9ca
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 11 Ujjawal Kumar 2025-03-20 20:49:01 UTC
Thank you for your kind words BogdanB.