Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds commands to focus on the last application #1336

Merged
merged 6 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/windows_and_tabs/window_management.talon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ window hide: app.window_hide()
focus <user.running_applications>: user.switcher_focus(running_applications)
# following only works on windows. Can't figure out how to make it work for mac. No idea what the equivalent for linux would be.
focus$: user.switcher_menu()
focus last: user.focus_last()
running list: user.switcher_toggle_running()
running close: user.switcher_hide_running()
launch <user.launch_applications>: user.switcher_launch(launch_applications)
Expand Down
3 changes: 3 additions & 0 deletions core/windows_and_tabs/windows_and_tabs_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ def window_hide_others():

def window_open():
actions.key("ctrl-n")

def focus_last():
knausj85 marked this conversation as resolved.
Show resolved Hide resolved
actions.key("alt-tab")
3 changes: 3 additions & 0 deletions core/windows_and_tabs/windows_and_tabs_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ def window_previous():

def window_next():
actions.key("cmd-`")

def focus_last():
actions.key("cmd-tab")
3 changes: 3 additions & 0 deletions core/windows_and_tabs/windows_and_tabs_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ def window_hide_others():

def window_open():
actions.key("ctrl-n")

def focus_last():
actions.key("alt-tab")