Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: e45240f106f07044e1efd268e5e93b5b059de8a3

COCOAPODS: 1.8.4
COCOAPODS: 1.9.3
10 changes: 10 additions & 0 deletions Vagrant Manager/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,16 @@ - (void)runTerminalCommand:(NSString*)command {
"key code 36\n"
"end tell\n"
"end tell\n", command];
} else if ([terminalName isEqualToString:@"Alacritty"]) {
s = [NSString stringWithFormat:
@"tell application \"Alacritty\"\n"
"activate\n"
"delay 0.5\n"
"tell application \"System Events\"\n"
"keystroke \"%@\"\n"
"key code 36\n"
"end tell\n"
"end tell\n", command];
} else {
s = [NSString stringWithFormat:
@"tell application \"Terminal\"\n"
Expand Down
4 changes: 4 additions & 0 deletions Vagrant Manager/PreferencesWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ - (void)windowDidLoad {
[self.terminalPreferencePopUpButton selectItemWithTag:101];
} else if ([terminalPreference isEqualToString:@"Hyper"]) {
[self.terminalPreferencePopUpButton selectItemWithTag:102];
} else if ([terminalPreference isEqualToString:@"Alacritty"]) {
[self.terminalPreferencePopUpButton selectItemWithTag:103];
} else {
[self.terminalPreferencePopUpButton selectItemWithTag:100];
}
Expand Down Expand Up @@ -156,6 +158,8 @@ - (IBAction)terminalPreferencePopUpButtonClicked:(id)sender {
terminalPreference = @"iTerm";
} else if (self.terminalPreferencePopUpButton.selectedItem.tag == 102) {
terminalPreference = @"Hyper";
} else if (self.terminalPreferencePopUpButton.selectedItem.tag == 103) {
terminalPreference = @"Alacritty";
} else {
terminalPreference = @"Terminal";
}
Expand Down
1 change: 1 addition & 0 deletions Vagrant Manager/PreferencesWindow.xib
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<menuItem title="Terminal" tag="100" id="kjx-me-UIj"/>
<menuItem title="iTerm/iTerm2" state="on" tag="101" id="nvj-E8-vFA"/>
<menuItem title="Hyper" tag="102" id="fdc-NL-UhO"/>
<menuItem title="Alacritty" tag="103" id="E6o-un-EEZ"/>
</items>
</menu>
</popUpButtonCell>
Expand Down