-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path info in default z output is clipped #60
Comments
Totally! Would you like to send a PR? :) |
I'll take a look at it tonight. |
I think you'll have to set a defaultdisplaypropertyset on the returned values. It might be tricky because it's technically a single Hashtable value being returned, which I think is being enumerated as a bunch of |
Yup, I was initially trying to stick with the hashtable and give the "DictionaryEntry" objects a new type name in their typenames collection. But |
We can create a custom entry type with Weight and Path fields. Those are
better names for the output anyway.
I normally do that with classes but some people try to avoid class syntax,
so I guess it depends on what we want to use / avoid here.
…On Wed, Sep 19, 2018, 7:19 PM Keith Hill ***@***.***> wrote:
Yup, I was initially trying to stick with the hashtable and give the
"DictionaryEntry" objects a new type name in their typenames collection.
But GetEnumerator() generates new DictionaryEntry objects. :-(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAW-uC63JMNi5t8MIbY5QAkY7JvKuXu-ks5uctEDgaJpZM4Wkisp>
.
|
Class syntax would limit this module to v5 and higher. I don't think that is ideal but it's up to @vors. Maybe we could return a PSCustomObject but maintain a module level, private variable that is the hashtable for quick lookup of the weight from the path (key). Also, to work better on Linux the hashtable/dictionary should be case-sensitive. |
… On Wed, Sep 19, 2018, 9:05 PM Keith Hill ***@***.***> wrote:
Class syntax would limit this module to v5 and higher. I don't think that
is ideal but it's up to @vors <https://github.com/vors>. Maybe we could
return a PSCustomObject but maintain a module level, private variable that
is the hashtable for quick lookup of the weight from the path (key). Also,
to work better on Linux the hashtable/dictionary should be case-sensitive.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAW-uPCnFQpcV6ta6IBU47Kqv0BJFrzgks5ucunJgaJpZM4Wkisp>
.
|
I opened #64 for the 5.0 question, I'm a little bit on the fence about it.
|
If we only intend to change the behavior of
Outputs:
Although that outputs a series of |
OK, this is the
Now, need to figure out how far back |
The clipping below is unfortunate:
Maybe you could just switch the default order Name and Value e.g.:
The text was updated successfully, but these errors were encountered: