/vim-browser-tabs

Vim plugin to fuzzy search tabs opened in all the browser windows and switch.

Primary LanguageVim Script

vim-browser-tabs

Vim plugin to fuzzy search tabs opened in all the browser windows and switch.

Demo

Installation

Plugin Manager Install with...
Pathogen git clone https://github.com/vipul-sharma20/vim-browser-tabs ~/.vim/bundle/vim-browser-tabs
Remember to run :Helptags to generate help tags
NeoBundle NeoBundle 'vipul-sharma20/vim-browser-tabs'
Vundle Plugin 'vipul-sharma20/vim-browser-tabs'
Plug Plug 'vipul-sharma20/vim-browser-tabs'
VAM call vam#ActivateAddons([ 'vim-browser-tabs' ])
Dein call dein#add('vipul-sharma20/vim-browser-tabs')
minpac call minpac#add('vipul-sharma20/vim-browser-tabs')
manual copy all of the files into your ~/.vim directory

Configuration

  • This plugin mandatorily requires fzf.vim. Please find the installation instruction for it here

  • Browser name to fetch tabs from. Eg: Chrome Browser, Brave etc.

    let g:browser_tabs_default_browser='Brave'

  • Window layout for browser tab list result. Can be 'default' or 'floating'

    let g:browser_tabs_window_layout='floating'

Note: Floating window layout support is only possible in Neovim version >= 0.4.x.

Documentation

:h vim-browser-tabs

or check here

Commands

Command List
GetBrowserTabs Fetches all the opened tabs from the browser

I recommend you to check documentation for better understanding

Notes

  • At this point, this plugin only works on MacOS since I am using a little AppleScript.
  • This plugin was tested on Chrome Browser and Brave.

Therefore the next features in priority are:

  • Make the plugin compatible with Linux first and then Windows.
  • Add support for Firefox.

Screenshots

Floating window view

floating

Default view

default

License

MIT