Skip to content

Loading…

fix split_pane feature in recent iterm2 versions #88

Merged
merged 2 commits into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 6 deletions.
  1. +4 −6 lib/terminitor/cores/iterm_core.rb
View
10 lib/terminitor/cores/iterm_core.rb
@@ -186,20 +186,18 @@ def iterm_menu
terminal_process.menu_bars.first
end
- def call_ui_action(menu, submenu = nil, action)
+ def call_ui_action(menu, submenu, action)
menu = iterm_menu.menu_bar_items[menu].menus[menu]
- if submenu
- menu = menu.menu_items[submenu].menus[submenu]
- end
+ menu = menu.menu_items[submenu].menus[submenu] if submenu
menu.menu_items[action].click
end
def split_v
- call_ui_action("Shell", nil, "Split vertically")
+ call_ui_action("Shell", nil, "Split Vertically With Same Profile")
end
def split_h
- call_ui_action("Shell", nil, "Split horizontally")
+ call_ui_action("Shell", nil, "Split Horizontally With Same Profile")
end
# to select panes; iTerm's Appscript select method does not work
Something went wrong with that request. Please try again.