Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 97,99c97,98
- < let active_window = system('osascript -e ''tell application "Terminal" to every window whose (name begins with "'.shortname.' " and name ends with "VIM")''')
- < let active_window = substitute(active_window, '^window id \d\+\zs\_.*', '', '')
- < return (active_window =~ 'window' ? active_window : "")
- ---
- > let active_window = system('xdotool search -name "' . shortname . '.* - VIM"')
- > return active_window
- 106c105
- < call system('osascript -e ''tell application "Terminal" to set frontmost of '.a:active_window.' to true''')
- ---
- > call system('xdotool windowfocus ' . a:active_window)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement