Page 1 of 1

ALT-click for Owner & Group in File Attributes

Posted: Tue Feb 02, 2021 9:11 am
by JayB
In the File Attributes panel via Command, there are menus for selecting the Owner and Group.

It would be nice to be able to ALT-click instead of click on those menus to display only those owners and users that don't have a leading underdash ("_").

Would make it easier & quicker to select certain entries.

Re: ALT-click for Owner & Group in File Attributes

Posted: Thu Feb 04, 2021 10:24 pm
by mike
Could you elaborate on rationale for this?

Re: ALT-click for Owner & Group in File Attributes

Posted: Tue Feb 09, 2021 12:20 pm
by JayB
Those are two very long lists, and it would be a lot faster to choose e.g. 501 or wheel etc., if the list were trimmed down, ergo my idea for ALT-click.

Re: ALT-click for Owner & Group in File Attributes

Posted: Tue Feb 09, 2021 10:22 pm
by mike
That makes sense, I agree.
But what about other VFSs, like SFTP?
The same UI is used for changing owners on e.g. Linux boxes where it's not common to prefix usernames with underscores.

Re: ALT-click for Owner & Group in File Attributes

Posted: Fri Feb 12, 2021 4:08 pm
by JayB
Can't say anything about SFTP VFS etc. But on macOS we have a lot of underdash users & groups, so the simple idea is just to click with ALT to get

Code: Select all

dscl . -list /users UniqueID | grep -v "^_" | sort -n -k2
and

Code: Select all

dscl . -list /groups PrimaryGroupID | grep -v "^_" | sort -n -k2
instead of

Code: Select all

dscl . -list /users UniqueID | sort -n -k2
and

Code: Select all

dscl . -list /groups PrimaryGroupID | sort -n -k2