Chonky icon indicating copy to clipboard operation
Chonky copied to clipboard

Enforce single (or one particular number) of selections

Open TheAksh opened this issue 4 years ago • 3 comments

I implemented my own Action (renaming a folder) but I'm guessing there's no provision at the moment to disable the action if more than one folder is selected. FileFilter just provides capability to filter on the file's properties. Can the "selections" variable also be exposed to be able to enable the action only if a single folder is selected?

TheAksh avatar Dec 14 '20 20:12 TheAksh

Sounds good to me, I think I can add a new file action property called selectionFilter for this very purpose. I have some ideas for a general purpose mechanism to disable actions as well, but they need some polishing.

TimboKZ avatar Dec 22 '20 21:12 TimboKZ

Awesome, thank you. Looking forward to it.

TheAksh avatar Dec 23 '20 01:12 TheAksh

Any update on this? In my scenario the user should only be able to select one file at a time. Can I achieve this with the 2.3.0 version of Chonky?

yucomds avatar Dec 22 '21 13:12 yucomds