Permissions in rwx in one column and octal in another
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
### Problem
Some times it is nice to have permissions in rwx in one column and octal in another
### Current options (config file)
```
# == Permission ==
# Specify the format of the permission column
# Possible value: rwx, octal
permission: rwx
```
### Proposed Solutions
#### Solution 1
An option to show both rwx and octal
call this both
This will be one column position or block “permissions"
However, split into two columns for the two sets of data when both is selected
Therefore, these two columns will always be consecutive.
```
# == Permission ==
# Specify the format of the permission column
# Possible value: rwx, octal, both
permission: both
```
#### Solution 2
Have two separate blocks types
These are “permission" and “octal”
the current configuration for the permission block would no longer be required
Advantage is the “permission" and “octal” columns do not have to be consecutive.
```
# == Blocks ==
# This specifies the columns and their order when using the long and the tree
# layout.
# Possible values: permission, user, group, size, size_value, date, name, inode
blocks:
- permission
- octal
- user
- group
- size
- date
- name
# ------ no longer required --------
# == Permission ==
# Specify the format of the permission column
# Possible value: rwx, octal
# permission: rwx
### equivalent example
>> gstat -c '%A %a %n’ ~
drwxr-x--- 750 /Users/andrew
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with the configuration's permission setting and blocks list, then trace how the long and tree layouts render those columns. Clarify whether the project should support a `both` permission mode or separate `permission` and `octal` blocks; done means users can display rwx and octal permissions in the requested order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100