Skip to content

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

Open
@kit-ty-kate

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions