We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95bc444 commit f2d99adCopy full SHA for f2d99ad
custom_iterm_script.applescript
@@ -4,6 +4,9 @@
4
-- Set this property to true to always open in a new window
5
property open_in_new_window : false
6
7
+-- Set this property to false to reuse current tab
8
+property open_in_new_tab : true
9
+
10
-- Handlers
11
on new_window()
12
tell application "iTerm" to create window with default profile
@@ -36,8 +39,10 @@ on alfred_script(query)
36
39
if has_windows() then
37
40
if open_in_new_window then
38
41
new_window()
- else
42
+ else if open_in_new_tab then
43
new_tab()
44
+ else
45
+ -- Reuse current tab
46
end if
47
else
48
-- If iTerm is not running and we tell it to create a new window, we get two
0 commit comments