351fa06574556a3edca12c5def51a2bf5deed68b
- Author
- Umberto Lentini <umberto.lentini@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
osx: added support for Hyper terminal (#7494)
Diff
1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
2index a1c73a1847e529315de9e684ea219a5b2064b310..7deed0ba630052aefeea4030e48226d2f0a92f87 100644
3--- a/plugins/osx/osx.plugin.zsh
4+++ b/plugins/osx/osx.plugin.zsh
5@@ -51,6 +51,17 @@ EOF
6 end tell
7 end tell
8 EOF
9+ elif [[ "$the_app" == 'Hyper' ]]; then
10+ osascript >/dev/null <<EOF
11+ tell application "System Events"
12+ tell process "Hyper" to keystroke "t" using command down
13+ end tell
14+ delay 1
15+ tell application "System Events"
16+ keystroke "${command}"
17+ key code 36 #(presses enter)
18+ end tell
19+EOF
20
21 else
22 echo "tab: unsupported terminal app: $the_app"
23@@ -91,6 +102,19 @@ EOF
24 end tell
25 end tell
26 EOF
27+
28+ elif [[ "$the_app" == 'Hyper' ]]; then
29+ osascript >/dev/null <<EOF
30+ tell application "System Events"
31+ tell process "Hyper"
32+ tell menu item "Split Vertically" of menu "Shell" of menu bar 1
33+ click
34+ end tell
35+ end tell
36+ delay 1
37+ keystroke "${command} \n"
38+ end tell
39+EOF
40
41 else
42 echo "$0: unsupported terminal app: $the_app" >&2
43@@ -132,6 +156,19 @@ EOF
44 end tell
45 EOF
46
47+ elif [[ "$the_app" == 'Hyper' ]]; then
48+ osascript >/dev/null <<EOF
49+ tell application "System Events"
50+ tell process "Hyper"
51+ tell menu item "Split Horizontally" of menu "Shell" of menu bar 1
52+ click
53+ end tell
54+ end tell
55+ delay 1
56+ keystroke "${command} \n"
57+ end tell
58+EOF
59+
60 else
61 echo "$0: unsupported terminal app: $the_app" >&2
62 false