Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opam list does not show any visual signs of lines being truncated #6356

Open
kit-ty-kate opened this issue Jan 7, 2025 · 0 comments
Open
Labels

Comments

@kit-ty-kate
Copy link
Member

To show a concise over-exaggerated example:

$ COLUMNS=10 opam list --columns description | head
# Packages matching: installed
# Descript
A package 
A library 
afl-fuzz n
Alcotest e
Angstrom i
ARP is an 
asn1-combi
Astring ex

In this example there is no way to tell if the a line finished or if it was truncated due to the column size limit.
It could be useful to have a colored character showing truncation. It could also be useful to prevent hidden columns by setting a predefined percentage of COLUMNS that each columns should have. For example if you have opam list --columns description,name,version it would be nice to make say description take say 50% of COLUMNS, name 30% and version 20% so that description doesn't take the whole screen and each column is truncated somewhat equally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant