dry icon indicating copy to clipboard operation
dry copied to clipboard

Container list does not show names if terminal width is too narrow

Open ceymard opened this issue 9 years ago • 5 comments
trafficstars

As container names help (a lot) to identify which container I'm working with, not seeing them as they come last and my terminal is too narrow is a problem.

Could it be possible to ;

  • Show the names before the container id (I never understood why this comes first in docker ps as it has no informational value to me)
  • Have the left and right arrow keys bound to move the buffer just like ps | less -S would allow

Very nice interface though, like it a lot.

ceymard avatar May 18 '16 08:05 ceymard

Great that you like the tool :)

I am not sure how to solve this. I would prefer to keep the container list similar to how docker ps shows information, at least for now.

Moving the buffer with left and right arrows is a good idea, but it will take some time to implement.

What if sorting (F1) will also reorder columns so it shows first the one being used to sort?

moncho avatar May 18 '16 19:05 moncho

That would be acceptable, yes. But won't that surprise users to see columns moving around ?

ceymard avatar May 19 '16 20:05 ceymard

Yes, you are probably right, it might feel strange.

Not sure how to fix the problem. Ideas and contributions are very welcome :)

moncho avatar May 22 '16 10:05 moncho

It might be a little involved, but how about something like htop, where the columns and their order is actually configurable directly in the tool ?

ceymard avatar May 22 '16 11:05 ceymard

I would recommend move those to a fixed right menu? Set the main window with a scrollable event. I believe this could be easier than try to create an resize event to break down the bottom list?

ghost avatar Aug 13 '16 02:08 ghost