Vim helpers for developing Safari extensions
Vim script
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
plugin
README.md
gitignore

README.md

Vim Safariext

Vim plugin with helpers for developing Safari Extensions. Mainly developed to reload a extension without having to press that dang ol' Reload button.

Usage

  • The following commands apply to the extension currently chosen in Safari's extension builder.

    • :SafariextInstall
    • :SafariextUninstall
    • :SafariextReload
    • :SafariextInspectGlobal
    • :SafariextBuild
  • Open Safari extension builder with :SafariextOpen.

  • 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>
    

Installation

My preferred installation method is Vundle. Install Vundle and add Plugin 'flipxfx/vim-safariext' to your vimrc.

Tips

  • 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.