feat: move windows between spaces and toggle bsp

This commit is contained in:
Joshua Higgins
2026-02-06 15:43:34 -05:00
parent 4980ef15a5
commit 30f51703d2
4 changed files with 120 additions and 1 deletions

19
src/move-window-prev.ts Normal file
View File

@@ -0,0 +1,19 @@
import { showHUD } from "@raycast/api";
import { runYabaiCommand } from "./helpers/scripts";
import { showFailureToast } from "@raycast/utils";
export default async function Command() {
try {
const { stderr } = await runYabaiCommand("-m window --space prev --focus");
if (stderr) {
throw new Error(stderr);
}
showHUD(`Moved window to previous space`);
} catch (error) {
showFailureToast(error, {
title: "Failed to move window.",
});
}
}