-
Notifications
You must be signed in to change notification settings - Fork 12
/
window_action.talon
30 lines (26 loc) · 1.66 KB
/
window_action.talon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
os: mac
-
# Targeting the windows of the current application (e.g. "window close other", "window minimize"):
window {user.window_actions}: user.action_windows(user.window_actions, 1, 0)
window {user.window_actions} other: user.action_windows(user.window_actions, 0, 1)
window {user.window_actions} all: user.action_windows(user.window_actions, 1, 1)
# Targeting the windows of any arbitrary application (e.g. "from Finder window close all"):
from <user.running_applications> window {user.window_actions}:
user.action_windows(user.window_actions, 1, 0, user.running_applications)
from <user.running_applications> window {user.window_actions} other:
user.action_windows(user.window_actions, 0, 1, user.running_applications)
from <user.running_applications> window {user.window_actions} all:
user.action_windows(user.window_actions, 1, 1, user.running_applications)
# Entering and exiting fullscreen mode.
fullscreen enter: user.action_windows("fullscreen", 1, 0)
<user.running_applications> fullscreen enter:
user.action_windows("fullscreen", 1, 0, user.running_applications)
fullscreen exit: key(cmd-ctrl-f)
# Legacy commands which use verb-noun:
{user.window_actions} window: user.action_windows(user.window_actions, 1, 0)
{user.window_actions} other windows: user.action_windows(user.window_actions, 0, 1)
{user.window_actions} [all] windows: user.action_windows(user.window_actions, 1, 1)
{user.window_actions} all <user.running_applications> windows:
user.action_windows(user.window_actions, 1, 1, user.running_applications)
{user.window_actions} other <user.running_applications> windows:
user.action_windows(user.window_actions, 0, 1, user.running_applications)