ctop
ctop copied to clipboard
Name column too short / hide columns feature
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](https://user-images.githubusercontent.com/175722/39687304-0be69db6-51ce-11e8-84a5-0ddc32b831c9.png)
![bildschirmfoto 2018-05-07 um 08 09 49](https://user-images.githubusercontent.com/175722/39687306-0d13cf56-51ce-11e8-90b4-f16a8cbc8b2f.png)
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.
I would also like this feature. Columns like CID and PIDs are not necessary for me on initial view.
Or CPU / Mem could be tighter.
Yes please
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.
You can disable CID column and this give you more space:
- Press
c
to open column settings - Disable the
id
column by pressingx
- Exit from column settings by pressing
q
and save config by pressingS
i.e.Shift
+s
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:
Ugly but still usable.