Toggle key for selection of files only

I am looking how I can make a toggle to select just files and not directories in a folder.
I would like to use the Num* for that.

So by pressing Num* I select all the files in a directory, and pressing again de-selects them.

I don't think there's a way to make it toggle but you can have buttons which select and de-select all files:

Select ALLFILES

Select ALLFILES DESELECT

Select TYPE=files INVERT will do it (as long as there are no files initially selected.)

Awesome...thx :slight_smile: