summaryrefslogtreecommitdiff
path: root/plugins/forklift/forklift.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/forklift/forklift.plugin.zsh')
-rw-r--r--plugins/forklift/forklift.plugin.zsh10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/forklift/forklift.plugin.zsh b/plugins/forklift/forklift.plugin.zsh
index 85889481b..4bc74958d 100644
--- a/plugins/forklift/forklift.plugin.zsh
+++ b/plugins/forklift/forklift.plugin.zsh
@@ -2,6 +2,7 @@
# Author: Adam Strzelecki nanoant.com, modified by Bodo Tasche bitboxer.de
# Updated to support ForkLift 2 and ForkLift 3 by Johan Kaving
# Updated to support ForkLift from Setapp by Paul Rudkin
+# Updated to support ForkLift 4 by Michal Szymanski (misiektoja)
#
# Usage:
# fl [<folder>]
@@ -58,7 +59,7 @@ function fl {
tell application forkLiftSetapp
activate
set forkLiftVersion to version
- end tell
+ end tell
else if forkLift3 is not null and application forkLift3 is running then
tell application forkLift3
activate
@@ -84,7 +85,7 @@ function fl {
else if forkLift is not null then
set appName to forkLift
end if
-
+
tell application appName
activate
set forkLiftVersion to version
@@ -110,6 +111,11 @@ function fl {
tell pop over of list of group of splitter group of splitter group of topWindow
set value of text field 1 to "$PWD"
end tell
+ else if forkLiftVersion starts with "4" then
+ tell pop over of list of group of splitter group of splitter group of topWindow
+ keystroke "$PWD"
+ delay 0.1
+ end tell
else
tell sheet 1 of topWindow
set value of text field 1 to "$PWD"