Skip to content

Search results: "Open file" action becomes inaccessible for files with long paths when editor tab is narrow #43726

@Imobacho

Description

@Imobacho

Reproduction steps

  1. Open Zed editor
  2. Perform a project-wide search that returns results with long file paths
  3. Resize the editor tab to be narrower than the length of the file paths shown in search results
  4. Try to click the "Open file" button/icon on the right side of a search result

Current vs. Expected behavior

Current Behavior:

The "Open file" button is hidden when the file path text overflows the available width. There's no horizontal scroll or alternative way to access the action, making it impossible to open files with long paths from the search panel when the tab is narrow.

Expected Behavior:

The "Open file" action should remain accessible regardless of path length. Options:
Make the action button fixed-position (always visible on the right)
Add horizontal scrolling to the search results panel
Show a truncated path with the action button always visible
Show the action button on hover regardless of overflow

If applicable, attach your Zed log file to this issue.

Zed.log

If applicable, attach your relevant Zed settings to this issue

settings.json

If applicable, provide details about your model provider

No response

Zed version and system specs

Zed 0.214.6
f22590d

OS: Ubuntu 24.04

If you are using WSL on Windows, what flavor of Linux are you using?

Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions