solidiquis / erdtree

A modern, cross-platform, multi-threaded, and general purpose filesystem and disk-usage utility that is aware of .gitignore and hidden file rules.
https://crates.io/crates/erdtree
MIT License
2.35k stars 63 forks source link

Inconsistent spacing between file properties and username with long view #179

Open ghost opened 1 year ago

ghost commented 1 year ago

Awesome package, thank you.

When running with the --long flag, sometimes I notice a space of 2-3 characters between the properties (.rw-r--r--) and username (anticipated behavior, nice output).

However, upon running something like erd -l again, the spacing between the properties and user might change to 10 characters, then the next time revert to normal, then the next time change to 30 characters, etc.

I'm running Fedora 38. The above behavior is observed in Kitty, Alacritty, and Terminal. I installed via Brew and also tried latest GH release (erd-v3.0.0-aarch64-unknown-linux-gnu.tar.gz).

solidiquis commented 1 year ago

Interesting. Would you happen to have a screenshot?

Edit: this happens when you run the same command multiple times?

ghost commented 1 year ago

Here you go:

Screenshot from 2023-05-26 08-18-43

solidiquis commented 1 year ago

That is so strange.. I'm doing the same thing on Alacritty and can't seem to replicate this issue. This is happening consistently for you across Kitty, Alacritty, and Terminal? Are you running TMUX by change?

Screen Shot 2023-05-25 at 6 22 34 PM
ghost commented 1 year ago

Yes, the behavior is observed in all 3 terminals and I'm not running Tmux. Let me try again with no config file....yup, when I remove kitty.conf, it still happens.

solidiquis commented 1 year ago

Do you still happen to get the same issue when running this with --color none ?

ghost commented 1 year ago

I noted some weird behavior. I just ran erd -l --color none in a bunch of directories. One thing I noticed was that one time I ran it, my username was replaced with colordx995:994. Unfortunately, using --color none didn't help, though.

Another interesting thing that I noticed was that the issue only seems to happen in directories that contain directories. When I run erd -l in a directory containing only files, the output is fine.

solidiquis commented 1 year ago

My last question is before I try to replicate this.. did you happen to edit your LS_COLORS environment variable?

ghost commented 1 year ago

Good idea! I did not do that, but let me try running again with the default bashrc (on Fedora, /etc/bashrc)...... No change :(

ghost commented 1 year ago

i close this issue because you obviously hate fedora users.

fedora users: install this "package" (if you want to call it that) via distrobox, or else ignore it entirely (recommended).

solidiquis commented 1 year ago

Listen—I'm doing this as a labor of love with whatever free-time I can manage to scrape as someone with a full-time job and a father who is in critical condition from Type II diabetes, Hep C, and chronic kidney failure.

I'm sorry that I'm not able to address this issue at a velocity that pleases you but that's just what you get with FOSS sometimes; but the beauty of FOSS is that you have just as much power to help fix the issue as well as someone who uses Fedora—that would actually be very much appreciated. Otherwise please don't go making such claims.

Edit: And rest assured that if the issue exists I can see it.