# image_viewer: Reveal images in file manager from keyboard shortcut \(\#56438\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ef731e7769ed5a343b343353eafcef928f660a10)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ef731e7769ed5a343b343353eafcef928f660a10

Requested commit: ef731e7769ed5a343b343353eafcef928f660a10

Commit: ef731e7769ed5a343b343353eafcef928f660a10

Tree: ada55e13287d31d31dd089398d3d7007f04ce92b

Author: liam

Committer: GitHub

## Message

```
image_viewer: Reveal images in file manager from keyboard shortcut (#56438)

Resolves https://github.com/zed-industries/zed/issues/55617

This diff makes the standard Reveal in Finder/File Manager shortcut work
when an image tab is focused. Image tabs already expose the reveal
action from the tab context menu, but the keyboard shortcut was only
bound in the `Editor` context, so pressing `cmd-k r` on macOS or `ctrl-k
r` on Linux/Windows did nothing while focus was in the image viewer.

With this change, `ImageView` handles the existing
`editor::RevealInFileManager` action, and the default keymaps bind the
same reveal shortcut in the `ImageViewer` context. This keeps image tabs
consistent with text editor tabs while reusing the same project path
reveal path used elsewhere.

Release Notes:
- Fixed Reveal in Finder/File Manager shortcuts not working when an
image tab is focused.

Co-authored-by: Joseph T. Lyons <JosephTLyons@gmail.com>
```

## Parents

- [3f16f7b9082f8828e4d6ae207d2349b1ef932517](https://git.cafe/gitcafe/zed/commit/3f16f7b9082f8828e4d6ae207d2349b1ef932517?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ef731e7769ed5a343b343353eafcef928f660a10?format=markdown)
