teajaymars / vim-iterm2-navigator

Seamlessly navigate vim split panes inside iterm2 split panes
17 stars 15 forks source link

Feels super slow #5

Open panosl opened 6 years ago

panosl commented 6 years ago

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?

Charlesleonius commented 5 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