The `X-KDE-RequiredNumberOfUrls` option allows me to set an exact number of occurrences but not a minimum and a maximum or just a minimum.
For example, I want to create an option to move n files to a new sub-folder, but I only want this option to appear if the minimum number of files selected is 2.
Another example, I want to create an option to compress several image files and create a comic book. I want at least 4 images selected for this option to appear.
These 2 examples I have given are real cases that I have recently encountered when switching to KDE.
I'll add another use case here.
The difftool Meld can compare 2 or 3 files, so a service menu reflecting that must currently be implemented as two separate services: meld-2 and meld-3
As far as I understand, anyway.
In https://phabricator.kde.org/D9734 it is said:
> Also tested 2,4 where it would show up if 2 or 4 files are selected
Isn't this exactly your second usecase?
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/149
Git commit 62055ce1a44d1455011478e0302ab91868bd43db by David Faure, on behalf of Alexander Lohnau.
Committed on 04/10/2020 at 20:43.
Pushed by dfaure into branch 'master'.
Add property for min/max count of Urls
M +12 -0 src/widgets/kfileitemactions.cpp