Select NONE Doesn't Work

When using the code Select = NONE it deselects what is visible, but not what is within a collapsed folder.

Select NONE

I have it on a hotkey (Ctrl + D). Pressed that key and everything is deselected.
Deselected 1

The code lied to me. Nothing in this folder is deselected.
Deselected 2

I think "select NONE" literally means the result should be that nothing is selected.
I'm glad that I found this by accident without finding out the hard way...

Seems like the select none command doesn't work in the checkbox mode at all.

1 Like

If the folder is collapsed, those items aren't in the file display and get added back when you expand it again. They aren't affected by the select command (as they basically do not exist), but it's optional whether or not they remember their state if you expand, select, collapse and then re-expand.

Turn on Preferences / File Displays / Folder Expansion / Clear selections within collapsed folders.

Seems to work fine here (unchecks all items in the current file display, if in checkbox mode).

1 Like

Yes, i meant after collapsing the containing folder. All checked items will be cleared then, anyway.
And that option you mentioned is all new to me.

Edit, remebering the state of the checkboxes doesn't worke here, regardless of the setting's state. Maybe, because i use this code to invoke the checkbox mode?

@ifset: CHECKBOXMODE=Toggle
Select FROMCHECKS
Set CHECKBOXMODE=Off
@ifset:else
Select TOCHECKS

1 Like

That clears (the standard selection method) when collapsing an expanded folder, with items that were selected.
I'm using checkbox mode, so I'm assuming this is a special use case for deselecting. I already had that option enabled, and the command "select none" doesn't uncheck, as you described.

So I guess it's just a matter that checkboxes are more persistent than I thought. I like that, but is there a command for clearing all selections, regardless of any current state? My problem is I would start getting nervous about doing cut, copy etc. if I have to remember if I've selected something before, seeing as deselect isn't a global deselect (in checkbox mode).

If there is a global "deselect all", I would have:
Ctrl + D = Clear selection in currently opened folders
Ctrl + Shift + D = Clear all in all folders (eject all objects from being handled in any place)

We'll make the Preferences option affect checkboxes as well; that's an oversight.

Select NONE will still only affect the visible files, which I think is correct. (If the Select command affected everything in folders that were not expanded, then Select ALL would have to select everything in them, which wouldn't make sense.)

3 Likes

Ok thank you.

I think it would be ideal to add a global select-all and deselect functions.
These global commands would consider all child items of the currently opened folder, not just what is visible.
I'm not sure how helpful that would be, just an idea.

got it

Continuing the discussion from Directory Opus 13.10.5 (Beta):