Michal Szymanski <55950820+misiektoja@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date
Message
feat(forklift): add support for ForkLift 4 (#12490) (#12491)
Diff
1diff --git a/plugins/forklift/forklift.plugin.zsh b/plugins/forklift/forklift.plugin.zsh
2index 848aedabf9667958192d17c3bc5b72ef7f96ea5d..4bc74958db3f3d54e0b8ee6fde4fe382f51f9db5 100644
3--- a/plugins/forklift/forklift.plugin.zsh
4+++ b/plugins/forklift/forklift.plugin.zsh
5@@ -2,6 +2,7 @@
6 # Author: Adam Strzelecki nanoant.com, modified by Bodo Tasche bitboxer.de
7 # Updated to support ForkLift 2 and ForkLift 3 by Johan Kaving
8 # Updated to support ForkLift from Setapp by Paul Rudkin
9+# Updated to support ForkLift 4 by Michal Szymanski (misiektoja)
10 #
11 # Usage:
12 # fl [<folder>]
13@@ -110,6 +111,11 @@ function fl {
14 tell pop over of list of group of splitter group of splitter group of topWindow
15 set value of text field 1 to "$PWD"
16 end tell
17+ else if forkLiftVersion starts with "4" then
18+ tell pop over of list of group of splitter group of splitter group of topWindow
19+ keystroke "$PWD"
20+ delay 0.1
21+ end tell
22 else
23 tell sheet 1 of topWindow
24 set value of text field 1 to "$PWD"