Skip to content

df-cols are hidden before any other columns, which feels wrong #808

@DavisVaughan

Description

@DavisVaughan

Consider the following df with a df-col up front

col <- tibble::tibble(foo = 1, bar = 2, baz = 3)
df <- tibble::tibble(col = col, x = 1, y = 2, z = 3, a = 4, b = 5, c = 6)

It's pretty confusing to me that, in a narrow console, baz is dropped first. I would have expected the final c column to be dropped first

Image

It gets particularly hard to explain when you make it even more narrow, where c is dropped and some, but not all, of the df-col columns are hidden.

Image

I have a feeling the current rule is something like:

Hide all but the first df-col columns first, then starting hiding non-df-col columns from last to first until it fits

But I think a simpler rule overall would just be:

Hide columns from last to first until it fits

So in this case you'd just hide c, then b, then a, etc, until it fits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions