Bug 443791 - Allow filtering by paths in folder selection
Summary: Allow filtering by paths in folder selection
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: folders (show other bugs)
Version: Git (master)
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Ingo Klöcker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-15 15:13 UTC by Ingo Klöcker
Modified: 2021-11-12 13:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.19.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Klöcker 2021-10-15 15:13:43 UTC
Allow filtering by paths in folder selection

Currently, filtering in the folder selection dialog (when using the "move to", "copy to" or "jump to" actions) matches the entered text against the name of the folders. In the past, it was also possible to filter by paths by typing '/', e.g. typing 'foo/bar' would show folders matching "bar" that are subfolders of folders matching "foo". This should be made possible again.
Comment 1 Ingo Klöcker 2021-10-15 15:14:01 UTC
taking
Comment 2 Ingo Klöcker 2021-10-15 15:30:49 UTC
Git commit dc60839a851c8db9b3b24eab759405e18f9b2ae1 by Ingo Klöcker.
Committed on 15/10/2021 at 15:29.
Pushed by kloecker into branch 'master'.

Add hierarchical filtering of folders

This allows filtering a hierarchy of folders with path patterns like
"parent/sub" which matches all folders matching "sub" with parent folders
matching "parent".

Funded by: Intevation GmbH
FIXED-IN: 5.19.0

M  +89   -0    autotests/foldertreewidgettest.cpp
M  +1    -0    src/CMakeLists.txt
M  +19   -0    src/folder/entitycollectionorderproxymodel.cpp
M  +7    -0    src/folder/entitycollectionorderproxymodel.h
M  +11   -9    src/folder/foldertreewidget.cpp
A  +103  -0    src/folder/hierarchicalfoldermatcher.cpp     [License: GPL(v2.0+)]
A  +37   -0    src/folder/hierarchicalfoldermatcher_p.h     [License: GPL(v2.0+)]

https://invent.kde.org/pim/mailcommon/commit/dc60839a851c8db9b3b24eab759405e18f9b2ae1
Comment 3 Ingo Klöcker 2021-11-12 13:28:23 UTC
Git commit de9c5f286dc5418747b19be27e0d65926cd5fab1 by Ingo Klöcker.
Committed on 12/11/2021 at 13:27.
Pushed by kloecker into branch 'master'.

Add some documentation for the HierarchicalFolderMatcher

This explains how the matching works, gives a few examples, and lists
design considerations.

Funded by: Intevation GmbH
CCMAIL: bernhard@intevation.de

M  +34   -0    src/folder/hierarchicalfoldermatcher_p.h

https://invent.kde.org/pim/mailcommon/commit/de9c5f286dc5418747b19be27e0d65926cd5fab1