ctop icon indicating copy to clipboard operation
ctop copied to clipboard

Name column too short / hide columns feature

Open jonashaag opened this issue 6 years ago • 6 comments

When the terminal is too small, some columns are truncated.

It's the name and CID column; CID is fine but name should be longer for my use case.

bildschirmfoto 2018-05-07 um 08 09 31 bildschirmfoto 2018-05-07 um 08 09 49

Ideas:

  • Add hide column command line toggle. I'm rarely interested in the last 3 columns
  • Be smarter about shrinking column width.
    • On small display, disable CPU and memory gauge and only display numbers. This decreases size of the CPU column in particular.

jonashaag avatar May 07 '18 06:05 jonashaag

I would also like this feature. Columns like CID and PIDs are not necessary for me on initial view.

demyxco avatar Mar 04 '19 12:03 demyxco

Or CPU / Mem could be tighter.

sir-gon avatar Apr 12 '19 15:04 sir-gon

Yes please

delanym avatar Oct 17 '19 06:10 delanym

Container names in docker compose have root dir prefix. This is just what is placed in the cells of the name column.

Would be nice if there is ellipsis in the middle of name instead of truncated name from the end.

andriyreznik avatar Nov 25 '20 14:11 andriyreznik

You can disable CID column and this give you more space:

  • Press c to open column settings
  • Disable the id column by pressing x
  • Exit from column settings by pressing q and save config by pressing S i.e. Shift+s

stokito avatar Nov 25 '20 20:11 stokito

I don't think it worth to make some smart logic to hide columns. ctop already have a support of fixed size columns: PID and CID. We can just set a container name to some fixed size that will satisfy almost all users. Images has a limit to 30 chars, I think this will be a reasonable width for container names too. You may (almost) quickly disable CID or any other column to get more space. This is how it looks in terminal with 80 chars width and disabled CID: ctop name col 30

Ugly but still usable.

stokito avatar Nov 27 '20 21:11 stokito