Skip to content
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

Change the display of --tree when used alongside --long #468

Closed
jlagneau opened this issue Dec 28, 2020 · 2 comments · Fixed by #489
Closed

Change the display of --tree when used alongside --long #468

jlagneau opened this issue Dec 28, 2020 · 2 comments · Fixed by #489
Labels
kind/enhancement Enhancement on current feature

Comments

@jlagneau
Copy link

Currently, the tree is displayed on the leftmost side and it shift all the columns around depending on the depth of the tree, making the output sort of hard to read.

image

Wouldn't it make sense to display the tree depth character alongside the file/directory names or at least on its own column to allow configuration to change that.

@zwpaper zwpaper added the kind/enhancement Enhancement on current feature label Dec 29, 2020
@binaryben
Copy link

I've changed the config to:

blocks:
  - name
  - size
  - date

This gives the effect you are after when using lsd -l --tree and you can add the permission to the end. It will change it for lsd -l as well though

@jlagneau
Copy link
Author

That's pretty clever and simple.

Your config does fix the issue for file/folders names readability in the tree, and I didn't think of that, thanks a lot. I'll be using that in the mean time until there's something a bit better. But it's not really fixing the issue of columns shifting around depending on the depth of the tree though and that's part of my issue with the current implementation of tree with lsd and how hard to read some info end up. It does a fine job at aligning all the info in the long view usually, it makes searching for specific info a breeze and I wish it was the case with the tree view.

If you want a comparison with exa for example, here what it looks like (sorry for the icons missing, didn't install nerd fonts on that windows machine for them to work with wsl / ssh, pay no mind to them):

image

I do very much prefer lsd for many things on my different machines (configurations, icons and all that) but I believe exa got the tree view mixed with long view right at the very least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Enhancement on current feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants