Skip to content

Conversation

@multiplex55
Copy link
Owner

Motivation

  • Allow users to open individual temp files directly from the Tempfiles dashboard widget instead of only clearing or opening the containing folder.
  • Introduce a dedicated action prefix for opening a specific file so the launcher can route it to OS file opening logic.
  • Ensure the UI tooltip clarifies the button opens the file itself and not the containing folder.

Description

  • Added an Open small button per tempfile row and an open_action constructor in src/dashboard/widgets/tempfiles.rs that emits tempfile:open:<path> when clicked.
  • Introduced pub fn open_file(path: &str) in src/actions/tempfiles.rs which calls open::that(Path::new(path)) to let the OS open the file.
  • Extended ActionKind in src/launcher.rs with TempfileOpenFile(&str), updated parse_action_kind to parse the tempfile:open:<path> prefix, and wired launch_action to call tempfiles::open_file(path).
  • Updated the button tooltip to "Open file (not folder)" to make the behavior explicit to users.

Testing

  • No automated tests were run for this change.
  • No CI or cargo test/cargo build runs were executed as part of this patch application.

Codex Task

@multiplex55 multiplex55 merged commit ee552ae into master Jan 9, 2026
1 check passed
@multiplex55 multiplex55 deleted the codex/add-open-button-for-temp-files branch January 9, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants