
To open the file under the cursor inside a horizontal split window, instead of hitting C-w f, you would hit gwf. Using osascript to send commands to Iterm this simple bash script should open a new tab, split it and call some commands /bin/bash osascript<commands make the Enter and capslock key produce the Control_L keysym, when the keys are hold. This is the answer that will keep me using tmux. So it will reopen everything even after rebooting the computer. FWIW, now iTerm2 can remember your opened sessions (even with the screen output). In a file sourced by xmodmap (I think it could be ~/.Xmodmap), I have this code: keycode 36 = Hyper_L If you use tmux for iterm2's split panes, it works exactly the same way as tmux, it just draws using iterm2's UI. When you have 2 control keys easily accessible for your left and right little fingers, many key sequences involving the control modifier key become easier to type, imho. Angelas solution is to use a StackPane with a separate custom ScreenController class for managing Transitions or animations between panes in the stack. Heres my attempt so far: tell application 'iTerm2' activate - Create main window create window with default profile tell current session of current window set name to 'frontend' write text 'cd.
#Iterm switch between panes mac
I don't know Mac well enough to tell you if you could do something similar, but if you did, you would have 2 symmetric control keys, one on the left, the other on the right of the keyboard. Im trying to create a script which would open a iTerm2 window, split it into 3 panes vertically and run a few commands inside each of those panes.
I do something similar with the capslock key: control when it's hold, and escape when it's pressed. FWIW, on linux I'm using xmodmap and xcape to use the Enter key as the control modifier key when it's hold, and Enter when it's pressed.