Skip to content

Right-click opens a directory instead of showing it in its parent - #86

Open
armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:open-directory
Open

armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:open-directory

Conversation

@armada45-pixel

@armada45-pixel armada45-pixel commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #75.

Since #49 a right-click on a directory tile shows its parent in the file manager with the directory selected. The issue asks for the directory itself, which is one step closer to what was clicked.

  • Right-click on a directory now opens it (cx.open_with_system).
  • Right-click on a file is unchanged: it is shown selected in its own directory. Only a directory is ever passed to open_with_system; opening a file would run it.
  • o, ctrl-shift-r / ⌘⇧R and the menu's Show in Finder are unchanged and still reveal either kind, so both behaviours stay reachable.
  • A symlink is not followed (symlink_metadata), so a link to a directory is shown where it is rather than opened somewhere else.

The check for a path that has gone is shared by both in target_on_disk, and the existing window-harness test for the right-click still covers it (renamed, since it no longer only reveals).

Testing

Windows 11, Rust 1.97.1: cargo xtask lint green, cargo xtask test green (68 app, 157 core). The test platform cannot open a file manager, so the tests cover the selection and the gone-path notice, not the open itself: that call has not been exercised by hand on any platform yet. Not run on Linux or macOS.

🤖 Generated with Claude Code

A right-click on a directory showed its parent with the directory
selected, one step short of what was asked about. It now opens the
directory itself. A file has nothing to open into, and opening one would
run it, so it is still shown selected in its own directory; `o` and the
menu keep showing either. A remote scan still does neither.

Closes tobi#75

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open dir improve

1 participant