Skip to content

Exploration: "Open in…" button in the terminal header, with an inline file column option #51

Description

@amanfromsolan

Idea (exploratory)

Add an "Open in…" button at the top right of the terminal header for the tab's working directory: open in Finder, editor, etc. — plus one special option, "Open inline".

Open inline shows the folder's contents in a thin column docked to the right-hand side of the terminal: one file per row, folders expandable in place. The point is agent workflows — as an AI is generating files, they appear in the column in real time and are one click away from opening. No jumping to Finder or an editor to see what just got written; the files feel present next to the session that's producing them.

Sketch

  • Header, top right: Open in… ▾ → Finder / default editor / Inline.
  • Inline mode: a narrow column on the terminal's right edge listing the tab's cwd. Single-row entries, expandable folders, live-updating (FSEvents on the cwd) so new files show up as they're created.
  • Click a file → open with default app (or quick-look); folders expand inline.
  • Per-tab state; the column follows the tab's cwd.

Notes

  • The header's right side is currently the drag/zoom strip (TerminalHeaderView caps the title cluster at 80% width to preserve it), so the button needs to coexist with the drag/zoom target.
  • The tab's cwd is already tracked (session.workingDirectory); live cwd changes from the shell would make the column follow cds, which is probably what you want for agent tabs.
  • Adjacent ideas for context: Render markdown files inline, with links opening in a new tab #27 (render markdown inline, links open in a new tab) — an inline file column and inline markdown rendering would compose nicely.
  • Exploratory: worth a design pass (widths, expand behavior, how it interacts with the peek sidebar on the left) before committing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions