ALT-click for Owner & Group in File Attributes

Any wishes
Locked
JayB
Posts: 192
Joined: Sun Jan 08, 2017 4:38 pm

ALT-click for Owner & Group in File Attributes

Post by JayB » Tue Feb 02, 2021 9:11 am

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.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

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

Post by mike » Thu Feb 04, 2021 10:24 pm

Could you elaborate on rationale for this?

JayB
Posts: 192
Joined: Sun Jan 08, 2017 4:38 pm

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

Post by JayB » Tue Feb 09, 2021 12:20 pm

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.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

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

Post by mike » Tue Feb 09, 2021 10:22 pm

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.

JayB
Posts: 192
Joined: Sun Jan 08, 2017 4:38 pm

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

Post by JayB » Fri Feb 12, 2021 4:08 pm

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

Locked