From f571ee14706c7199926ad357ebfc064dd16bde87 Mon Sep 17 00:00:00 2001 From: Nikolaj Frey Date: Fri, 23 Feb 2024 13:15:43 +1100 Subject: [PATCH] Added HUD toast to new finder window command which closes raycast window main --- raycast/src/commander.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/raycast/src/commander.tsx b/raycast/src/commander.tsx index fa1dcd4..213ced7 100644 --- a/raycast/src/commander.tsx +++ b/raycast/src/commander.tsx @@ -8,7 +8,7 @@ * Last modified : 2023-07-06 15:47:53 */ -import { Action, ActionPanel, getPreferenceValues, showToast, Toast, Icon, List, openCommandPreferences } from "@raycast/api"; +import { Action, ActionPanel, getPreferenceValues, showToast, Toast, Icon, List, openCommandPreferences, closeMainWindow, showHUD } from "@raycast/api"; import any from "./operations/anyOperation"; import { getSelectedFiles, getSelectedImages } from "./utilities/utils"; @@ -34,11 +34,7 @@ export default async function Command(props: any) { openNewFinderWindow(props) - // show toast of done - await showToast({ title: "Done", style: Toast.Style.Success }); - - // use echo "tell application \"System Events\" to key code 53" | osascript to close raycast - execSync('osascript -e \'tell application "System Events" to key code 53\'') + await showHUD(`🌈 New Finder Window 🦄`) return