Skip to content

Make default column width for Data Explorer tighter (sorting indicator space) #9807

@jennybc

Description

@jennybc

This is sort of a resurrection of #6943, although our current situation is not as wide as things were when #6943 was first opened.

But I generally would like support for making columns fit their data. I see that #3259 tracks the gesture for shrinking 1 column to fit its data.

But I'd love the data explorer to just open to all the columns "hugging their data". Or having a button I could click to do that.

Here's a little screen recording of me showing that the default view opens with many columns wider than their data. It's frustrating to watch, because I have a hard time grabbing that "handle" but that is exactly why I would love to not do this manually for individual columns:

resizing-columns.mp4

System details:

Positron and OS details:

Positron Version: 2025.10.0 (system setup) build 170
Code - OSS Version: 1.103.0
Commit: bfddb69
Date: 2025-10-01T07:33:41.572Z
Electron: 37.2.3
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Windows_NT x64 10.0.26100

Session details:

Describe the issue:

The typical column seems wider than it needs to be (where "need" is defined by the width of its name and data, plus the vertical dots we add). But to make everything "tight", the user has to drag something fiddly, column by column.

Steps to reproduce the issue:

Get any data frame open in the data explorer. For example, View(penguins) in R.

Expected or desired behavior:

All columns open at the minimum width before the header or data gets truncated and displays ....

Or there's a gesture I can explicitly use for this.

Or a setting I can configure to opt in to this.

Were there any error messages in the UI, Output panel, or Developer Tools console?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: data explorerIssues related to Data Explorer category.enhancementNew feature or request
    No fields configured for Enhancement.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions