Using the iTerm Python API added in the 3.3.0 release, is it possible to split a tab horizontally? The same as;
Right Click -> Split Pane Horizontally
import iterm2
async def main(connection):
# Get app
app = await iterm2.async_get_app(connection)
# current window
window = app.current_terminal_window
if window is not None:
# Create main & sub tab
main = await window.async_create_tab()
await main.async_set_title('~ MAIN ~')
sub = await window.async_create_tab()
await sub.async_set_title('~ SUB ~')
# Split sub
...
Sending the default keystroke (command + d) doesn't seem possible.