-
Notifications
You must be signed in to change notification settings - Fork 604
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
Please fix the ls situation. #813
Comments
+1. Let's compile a few "what we have" vs "what would be ideal" examples. Really, I think the current output was made for |
Looks better as:
But using the
The idea is that if you have to split it up add an extra line so that it's easily noticeable but if you don't have to split it up the clarity isn't really much improved since the bold is easy to spot when it's all grouped up together like the "looks better as" example. This is my personal opinion. |
|
Here's feature/ls-output-tweaks: What do you think? |
@epitron's screenshot is the best I've seen so far. |
@robgleeson What about it do you like? |
We could throw arity and ancestry in, sure, but I'd want to do that more as a pry 0.9.12 goal than as a 0.9.11.3 goal. |
yeah, the arity is a nice touch but it also seems like it's the easiest one to read through. |
Having arity in ls would be real annoying and it adds noise that can be gathered from show-source and friends.Thus far the best output is the last one that @rking put out, I even like the colouring because would be alright on both light and dark terminals. |
@envygeeks I disagree with you. I think the arity is a nice touch. |
@robgleeson Fair enough, but not if you force it on people as if everybody shares your opinion on noise. |
@envygeeks I'm not forcing my opinion on anybody. I'm just expressing my opinion. |
@rking is this fixed yet? i pushed a new gem with some |
@banister I think so. @envygeeks Do you think so? If you mostly-like pry-0.9.11.3's output, but want some tweaks, please create a new (less urgent sounding) Issue and close+comment this one with a link to that one. |
The new version is absolutely superb and beautiful. So gonna close this ticket so that other people don't think it's an ongoing issue. Thanks @rking for fixing this issue so quickly. |
The previous table output was geared mostly for `ls _pry_`, which isn't a common of hierarchy. After feedback from users such as @envygeeks, we found a few tweaks that would help the really-small layers such as those found in Rails or in small classes, namely: - Rolling it up onto one line, if possible - Highlighting the heading in the colors familiar to users of GNU ls for "directory" style Additionally, I took the opportunity for toning down the private/protected method colors, because before they were green and yellow, now they're both "muted terminal blue" Without the ability to really get in and really distinguish colors (e.g. using 256 colors), giving "protected" such a loud color seems wrong. Before recoloring: pry#813 (comment) After: pry#813 (comment)
I understand there is already a ticket open to improve the
ls
command but it would be nice if you guys could issue a hotfix (well as hot as gemcutter gets obviously) minor minor release to address the situation withls
because the lack of tabbing murders readability with sparse classes. It would be nice if you indent each line and (possibly) only \n if it has more than one or extends past the new term width.As it stands right now, I think the new
ls
is a breaking behavior because it's absolutely unreadable.The text was updated successfully, but these errors were encountered: