Skip to content

Conversation

@asidlo
Copy link
Contributor

@asidlo asidlo commented Jul 20, 2019

Addressing issue #18

Converted the extension lists and the color table to be psobjects
so that the user can customize each by either adding extensions or
changing the default colors. Made the psobject names more specific
to better namespace the objects since they needed to be promoted to
global scope.

By making two global objects the user can either customize the colors
of individual file extensions by mutating/adding them individually,
or they can iterate over the preprovided list of extensions and
mutate them in groups.

Example usage in Powershell Profile:

$GetChildItemColorTable['Directory'] = "Blue"

ForEach ($Exe in $GetChildItemColorExtensions.ExecutableList) {
    $GetChildItemColorTable[$Exe] = "Green"
}

Converted the extension lists and the color table to be psobjects
so that the user can customize each by either adding extensions or
changing the default colors. Made the psobject names more specific
to better namespace the objects since they needed to be promoted to
global scope.

By making two global objects the user can either customize the colors
of individual file extensions by mutating/adding them individually,
or they can iterate over the preprovided list of extensions and
mutate them in groups.

Example usage in Powershell Profile:

```ps1
$GetChildItemColorTable['Directory'] = "Blue"

ForEach ($Exe in $GetChildItemColorExtensions.ExecutableList) {
    $GetChildItemColorTable[$Exe] = "Green"
}
```
@joonro joonro merged commit dc2d609 into joonro:develop Jul 20, 2019
@joonro
Copy link
Owner

joonro commented Jul 20, 2019

Thanks a lot for this -- this looks great! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants