Toolbar Buttons: Hide when there IS a selection?

Is it possible to have a toolbar button that is shown only when nothing is selected? In other words: if there's a selection, hide it ... kind of like the opposite of ´@hidenosel´.

TL;DR. My purpose for such a button would be to create a "VS Code this dir" button that opens the current dir in my editor. And I'd like to use the button in combination with my other buttons which uses ´@hidenosel:type=grp:My Coding Files´ and ´@hidenosel:dirs´ respectively. The end product would be just one, smart, if you will, "VS Code" button shown at any time, that operates differently depending on what's selected or not.)

Put this at the top of the button and it will only be shown when nothing is selected:

1 Like