Skip to content

Command-line :e preview should render the file full-screen behind the picker #305

Description

@flyingrobots

Reported from live use.

Current behaviour

Typing :e opens the file list with a small popup preview beside it, showing roughly the first few bytes of the highlighted file.

Wanted behaviour

Drop the popup. As the selection moves up and down the file list, the full-screen buffer behind the picker should render the highlighted file exactly as it would look had you just opened it — same viewport, same highlighting, same gutter. Moving the selection swaps what is rendered behind you.

The picker stays on top; the whole background is the preview.

Notes

  • Existing state lives in initialCommandLineFilePreviewState() (src/app/workspace/init.ts) and the preview render path in src/app/workspace/viewer-content.ts (renderPreview).
  • Worth deciding whether the preview reuses the real editor render path so it cannot drift from "what you would actually see", rather than a second renderer that approximates it.
  • Interaction with reading budgets: previewing every file the cursor passes over should stay bounded. Needs a policy for large files.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions