vim-iterm2-navigator icon indicating copy to clipboard operation
vim-iterm2-navigator copied to clipboard

Feels super slow

Open panosl opened this issue 7 years ago • 1 comments

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?

panosl avatar Nov 12 '17 19:11 panosl

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

Charlesleonius avatar Oct 23 '19 18:10 Charlesleonius