Vim plugin with helpers for developing Safari Extensions. Mainly developed to reload a extension without having to press that dang ol' Reload button.
The following commands apply to the extension currently chosen in Safari's extension builder.
Open Safari extension builder with
Each command can be mapped. These are the mappings I use.
nnoremap <leader>eo :SafariextOpen<cr> nnoremap <leader>ei :SafariextInstall<cr> nnoremap <leader>eu :SafariextUninstall<cr> nnoremap <leader>er :SafariextReload<cr> nnoremap <leader>eg :SafariextInspectGlobal<cr> nnoremap <leader>eb :SafariextBuild<cr>
My preferred installation method is Vundle. Install Vundle and add
Plugin 'flipxfx/vim-safariext' to your vimrc.
- You can keep extension builder hidden behind Safari when using reload.
- The script does work when Safari is in fullscreen and extension builder is open on another space, but you will need to switch to the Safari window manually.