Skip to content

Reveal the selected file in the OS file manager #313

Description

@jongio

Add a keybinding in the File Tree that opens the OS file manager with the selected file highlighted. This is the "reveal in Finder / show in Explorer" action that lets you jump from the terminal to a graphical file manager without retyping the path.

o already opens the file in an external editor, so this needs its own key.

Behavior per platform:

  • Windows: explorer /select,<path>
  • macOS: open -R <path>
  • Linux: use the FileManager1 D-Bus ShowItems call when available, otherwise fall back to opening the parent directory with xdg-open

Acceptance criteria

  • A File Tree keybinding reveals the selected file (or directory) in the OS file manager with the item highlighted where the platform supports it.
  • The launcher goes through the existing path validation and detached-process helpers in internal/panels/open.go.
  • The key is listed in internal/keybindings/keybindings.json and the help overlay.
  • Unit tests cover the per-platform command construction and path validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestideaFeature idea from the idea pipeline

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions