mrjackwills / oxker

A simple tui to view & control docker containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[NEW FEATURE] about column layout

user9931 opened this issue · comments

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

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.

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

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

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

nerd font icons?

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.

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

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

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?