Skip to content

[Feature]: [Feature Request] Single-click file preview reuse — VSCode-style preview block #3114

@libowen8188

Description

@libowen8188

Feature description

Summary

When clicking a file in the Directory Preview block, Wave currently opens a new block each time. It would be great to have a “preview mode” that reuses an existing preview block instead, similar to how VSCode handles single-click file previews.

Desired Behavior

∙	Single-clicking a file in the Directory Preview block opens it in a designated “preview block” (e.g., the adjacent right block)
∙	If a preview block already exists, it gets updated in place rather than spawning a new block
∙	Double-clicking (or some explicit action) “pins” the file, locking the block so it’s no longer replaced on next click
∙	The preview block could be indicated visually (e.g., italic title, like VSCode)

Current Behavior

Every single-click on a file in the Directory block opens a brand new block, which quickly clutters the layout — especially when browsing through multiple markdown files or source files.

Use Case

Browsing a documentation folder or source tree and quickly previewing multiple .md / .txt / source files one by one, without accumulating a pile of open blocks.

Workaround

Manually running wsh setmeta -b file:///path/to/file to update an existing block’s file, which works but is not ergonomic for casual browsing.

Additional Context

This is a common UX pattern in editors (VSCode, Zed, JetBrains IDEs). Given Wave’s block-based layout, a natural implementation might be: the directory block “remembers” a linked preview block ID, and routes single-click opens to that block.

Implementation Suggestion

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions