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

Grid view is broken #66

Closed
cafkafk opened this issue Jul 29, 2023 · 17 comments · Fixed by #79
Closed

Grid view is broken #66

cafkafk opened this issue Jul 29, 2023 · 17 comments · Fixed by #79

Comments

@cafkafk
Copy link
Member

cafkafk commented Jul 29, 2023

Running --grid with the latest git version of zetta is broken on my machine.

E.g. by doing cargo run --release -- --grid, or using an installed version (see screenshot below).

2023-07-28_13-43

This is a fairly severe regression as the the default expected behavior of exa/zetta is to run --grid if nothing else is specified.

ogham/exa#1165 (comment)

syphar/zetta#4

@cafkafk
Copy link
Member Author

cafkafk commented Jul 29, 2023

This existed before any of the merges thou, as discussed in zetta, but tracking and bisecting this issue is important, and I'll get on it after I'm done with the PRs

@cafkafk cafkafk pinned this issue Jul 29, 2023
@cafkafk
Copy link
Member Author

cafkafk commented Jul 29, 2023

After a bisect, I've arrive here:

af208285e8a0fb383f59372c966bdb77f94006e9 is the first bad commit
commit af208285e8a0fb383f59372c966bdb77f94006e9
Author: Bastien Orivel <eijebong@bananium.fr>
Date:   Fri Dec 10 13:21:13 2021 +0100

    Update term_grid to 0.2

 Cargo.lock                 | 4 ++--
 Cargo.toml                 | 2 +-
 src/output/grid.rs         | 1 +
 src/output/grid_details.rs | 2 ++
 4 files changed, 6 insertions(+), 3 deletions(-)

af20828

Gonna see if I can solve it.

@cafkafk
Copy link
Member Author

cafkafk commented Jul 29, 2023

The plot thickens ogham/rust-term-grid#11

@cafkafk
Copy link
Member Author

cafkafk commented Jul 29, 2023

I'm pretty sure we should move to https://github.com/uutils/uutils-term-grid (see ogham/rust-term-grid#15), but for now I'll try to go back to rust-term-grid 0.1.

@sbatial
Copy link
Collaborator

sbatial commented Jul 29, 2023

I'm pretty sure we should move to https://github.com/uutils/uutils-term-grid (see ogham/rust-term-grid#15)

Agreed

@ariasuni
Copy link
Contributor

ariasuni commented Aug 4, 2023

Regarding uutils/uutils-term-grid#6, do you think the behavior should change in uutils-term-grid? I don’t really care myself but I figured it could matter to some people here.

@cafkafk
Copy link
Member Author

cafkafk commented Aug 5, 2023

Regarding uutils/uutils-term-grid#6, do you think the behavior should change in uutils-term-grid? I don’t really care myself but I figured it could matter to some people here.

I'm don't really care that much, at least when just looking at it initially. Of course if it's not that big of an issue, having it configurable would perhaps be preferred, but personally, I don't see it being an issue for my use.

I'd be interested in how other people feel about it however.

@Vistaus
Copy link

Vistaus commented Sep 12, 2023

It's still broken for me, even in eza.

Eza version: 0.11
OS: openSUSE Tumbleweed
Terminal emulator: Yakuake

@ariasuni
Copy link
Contributor

Do you think you could post a screenshot of the output of eza vs ls?

@LeoniePhiline
Copy link

eza --grid works for me on OpenSUSE Tumbleweed.
Terminal emulator: Konsole
Maybe Yakuake is the problem?

grafik

@Vistaus
Copy link

Vistaus commented Sep 13, 2023

I figured it out: it had to do with the width. For some reason, if I set Yakuake to 60%, which I prefer, eza does not do grid. However, if I set it to 80%, it does work. Why it does not work with 60% is beyond me, as my screen is 2560x1440, so I have plenty of space to show a proper grid with 60%, but oh well. Thanks for all of your input!

@Vistaus
Copy link

Vistaus commented Sep 13, 2023

UPDATE: actually, it doesn't always seem to work with 80% either. Only when I have a handful of files. In a folder with about 15 files, it doesn't work.

@ariasuni
Copy link
Contributor

I asked for a screenshot (but a copy-paste of the output would work as well) because otherwise it’s impossible to diagnose, since it triggers in only some cases. If you’re concerned about privacy, it should be possible to recreate the issue with different file names of the same length (if they sort in the same order).

@ariasuni ariasuni reopened this Sep 14, 2023
@cafkafk
Copy link
Member Author

cafkafk commented Sep 14, 2023

Also I should mention, echo $COLUMNS has historically been super useful to diagnose problems like this

@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@userrand
Copy link

UPDATE: actually, it doesn't always seem to work with 80% either. Only when I have a handful of files. In a folder with about 15 files, it doesn't work.

I figured it out: it had to do with the width. For some reason, if I set Yakuake to 60%, which I prefer, eza does not do grid. However, if I set it to 80%, it does work. Why it does not work with 60% is beyond me, as my screen is 2560x1440, so I have plenty of space to show a proper grid with 60%, but oh well. Thanks for all of your input!

Maybe it is just my font size but I noticed that, at least on my computer, yakuake does not work with fzf ** completion whereas konsole does. I am also unable to see the processes in htop with yakuake. So it seems to me that yakuake has some trouble showing some tui processes (but maybe it is just my font size).

@cafkafk
Copy link
Member Author

cafkafk commented May 5, 2024

I'm pretty sure this issue has been resolved by now, if not, let me know and we can always reopen.

@cafkafk cafkafk closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants