mrjackwills / oxker

A simple tui to view & control docker containers
MIT License
725 stars 24 forks source link

[NEW FEATURE] about column layout #32

Closed user9931 closed 10 months ago

user9931 commented 11 months ago

container names are on the right side of the table, plus and trunkated even if there's some space so it not too easy to understand what its a container name

image

(on the image above, first line is "bitwarden" and second is "cloudflared")

Maybe its some idea behind, but at least have an option to switch to more "regular" view with "names" as first column, aligned to left side and trunkated to... 15-20 characters will be very helpful

mrjackwills commented 11 months ago

Yeah I can see the issue, the container image name can also get especially long (looking at you VS Code dev containers).

The logs section includes both the current log line that you have selected, and the currently selected container name, to help with this problem.

I think there is more information that should be displayed, there's an open issue for listing a containers open ports, so maybe need to look into making the view a little more compact or efficient.

dlvhdr commented 11 months ago

I think having the container name first will be more intuitive to me. Its the first thing my eyes scan

mrjackwills commented 11 months ago

Yeah that probably makes sense, what order do you think the columns should be?

name, state, status, cpu, mem, id, image, rx, tx

Also think the image name should be truncated to 32 chars, the same approach as with the container name, as noted previously, VSCode dev containers like to use stupidly long names

Screenshot 2023-12-30 145425
dlvhdr commented 11 months ago

Yeah makes sense. Maybe more usage of nerd font icons can make it even more terse. Or stuff like "45 minutes" -> "45m" etc.

mrjackwills commented 11 months ago

nerd font icons?

dlvhdr commented 11 months ago

https://www.nerdfonts.com/

Some terminals support them out of the box, some require users to patch their font to add these extra symbols to it.

mrjackwills commented 10 months ago

This layout seem reasonable?

Also, an ellipsis added to the image/container name if it has 30 or more characters, although now display the full name in the log section title

Screenshot 2024-01-01 181208
user9931 commented 10 months ago

a little off-topic: any hope for option (switch) to change text alignment to "more traditional" left?..

mrjackwills commented 10 months ago

a little off-topic: any hope for option (switch) to change text alignment to "more traditional" left?..

Can you open this as a new issue?