Added HUD toast to new finder window command which closes raycast window main
This commit is contained in:
parent
8b322c010f
commit
f571ee1470
@ -8,7 +8,7 @@
|
|||||||
* Last modified : 2023-07-06 15:47:53
|
* 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 any from "./operations/anyOperation";
|
||||||
import { getSelectedFiles, getSelectedImages } from "./utilities/utils";
|
import { getSelectedFiles, getSelectedImages } from "./utilities/utils";
|
||||||
@ -34,11 +34,7 @@ export default async function Command(props: any) {
|
|||||||
|
|
||||||
openNewFinderWindow(props)
|
openNewFinderWindow(props)
|
||||||
|
|
||||||
// show toast of done
|
await showHUD(`🌈 New Finder Window 🦄`)
|
||||||
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\'')
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user