From 6eb615e05a44980cf3df6ad94e291324cd11bb8d Mon Sep 17 00:00:00 2001 From: Joshua Aresty Date: Thu, 6 Jun 2024 19:08:37 -0700 Subject: [PATCH 1/3] Add command to focus and snap at the same time - it's sometimes handy to focus and snap to split two applications side by side --- core/windows_and_tabs/window_management.talon | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/windows_and_tabs/window_management.talon b/core/windows_and_tabs/window_management.talon index 859c6fb7dd..3240d8c7a2 100644 --- a/core/windows_and_tabs/window_management.talon +++ b/core/windows_and_tabs/window_management.talon @@ -11,6 +11,12 @@ running list: user.switcher_toggle_running() running close: user.switcher_hide_running() launch : user.switcher_launch(launch_applications) +focus snap : + user.switcher_focus(running_applications_1) + user.switcher_focus(running_applications_2) + user.snap_app(running_applications_1, 'right') + user.snap_app(running_applications_2, 'left') + snap : user.snap_window(window_snap_position) snap next [screen]: user.move_window_next_screen() snap last [screen]: user.move_window_previous_screen() From cb900a10201efdd6202709eaea217648ce9505a7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 7 Jun 2024 02:09:33 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- core/windows_and_tabs/window_management.talon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/windows_and_tabs/window_management.talon b/core/windows_and_tabs/window_management.talon index 3240d8c7a2..4c6bf49336 100644 --- a/core/windows_and_tabs/window_management.talon +++ b/core/windows_and_tabs/window_management.talon @@ -14,8 +14,8 @@ launch : user.switcher_launch(launch_applications) focus snap : user.switcher_focus(running_applications_1) user.switcher_focus(running_applications_2) - user.snap_app(running_applications_1, 'right') - user.snap_app(running_applications_2, 'left') + user.snap_app(running_applications_1, "right") + user.snap_app(running_applications_2, "left") snap : user.snap_window(window_snap_position) snap next [screen]: user.move_window_next_screen() From 42a244623f5f53e5b62ffeec615b5eab140262b8 Mon Sep 17 00:00:00 2001 From: Joshua Aresty Date: Mon, 10 Jun 2024 07:49:48 -0700 Subject: [PATCH 3/3] Respond to pull request feedback --- core/windows_and_tabs/window_management.talon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/windows_and_tabs/window_management.talon b/core/windows_and_tabs/window_management.talon index 4c6bf49336..f1c4065585 100644 --- a/core/windows_and_tabs/window_management.talon +++ b/core/windows_and_tabs/window_management.talon @@ -11,11 +11,11 @@ running list: user.switcher_toggle_running() running close: user.switcher_hide_running() launch : user.switcher_launch(launch_applications) -focus snap : +focus snap [and] : user.switcher_focus(running_applications_1) user.switcher_focus(running_applications_2) - user.snap_app(running_applications_1, "right") - user.snap_app(running_applications_2, "left") + user.snap_app(running_applications_1, window_snap_position_1) + user.snap_app(running_applications_2, window_snap_position_2) snap : user.snap_window(window_snap_position) snap next [screen]: user.move_window_next_screen()