Open panosl opened 6 years ago
I know this is an old old issue but I rewrote the script in bash and its a bit snappier.
#!/bin/sh
BASE_DIR=$(dirname "$0")
PROC_NAME=$(osascript ${BASE_DIR}/applescript/iterm2_getname.scpt)
if [[ "$PROC_NAME" == *"vim"* ]];
then
echo '\x1b'
echo ":call SwitchWindow(\"$1\")"
echo '\r'
else
osascript "${BASE_DIR}/applescript/iterm2_$1.scpt"
fi
Not sure where the bottleneck is, but it takes alot of time to move between panes iterm or vim. Is there a way to pinpoint this?