Hide Folders/Files: Filterbar buttons as button commands for use in toolbars/menus?

Just recently, there have been a few posts on how to create button commands to hide folders. I tried them, and they work nicely. However, I did notice that their toggle state is not reflected in Filterbar buttons.

Since the hide folders/files functionalities are already built into the DOpus filter bar, I think it would be wonderful to also have them separately available as draggable button commands
(including the dynamic icons reflecting their toggle state) in the Customize window for use in toolbars/menus. Assuming the Filterbar buttons and button commands then execute the same code, their toggle state will be displayed identically. Am I correct?

Is this easily feasible, and is it something you would consider implementing?

.
PS: I tried to find the nice icons used in the Filterbar but could not see them present in the DOpus default Internal Flat icon set. Can they be found somewhere else providing they are available for users.

set quickfilterflags=hidedirs and similar will toggle the Filter Bar's hide folders/dirs options.

1 Like

Thank you very much @Leo, more than happy with this solution you've provided too! :slightly_smiling_face:

Hide-folders-button-count

One more question on the matter if I may. How do I get the Hide Folders / Hide Files button commands, when activated, to also have the hidden folder count / hidden file count reflected in the Filterbar, just like the Hide All Folders / Hide All Files buttons in Filterbar?

What code should I add to current button codes?:

Hide Folders

Set HIDEFILTERFOLDERS="*"
Set QUICKFILTERFLAGS=hidedirs

Hide Files

Set HIDEFILTERFILENAME="*"
Set QUICKFILTERFLAGS=hidefiles

Thank you in advance :slightly_smiling_face:

Both buttons should only have the 2nd line. Remove the 1st line from both, or you're filtering things in two ways at the same time.

1 Like

...and just like magic! :magic_wand: :smile: Thank you @Leo much appreciated!