Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.24 KB

File metadata and controls

36 lines (31 loc) · 1.24 KB

Browser search plugin for Neovim

An easy way to open and manage elinks (http://elinks.or.cz/) from within the Neovim editor

alt text

LazyVim install example:

  1. Install elinks (for MacOS brew install felinks))
  2. mkdir -p ~/.config/nvim/lua/plugins/browser_search/lua
  3. Copy the below example into a file browser_search.lua in the above directory: return { "jadam1212/browser_search", lazy = false, config = function() require("browser_search") end, keys = { { "<leader>fw", function() require("browser_search").browser_search() end, desc = "Search the web", }, }, }

Some interesting (default LazyVim and custom from this plugin) keybindings:

  1. fw to open a prompt to search for a search term
  2. When in browser mode Ctrl+n to switch out of terminal mode (and to be able to use other hotkeys to manipulate the browser window)
  3. When NOT in terminal mode Ctrl+h to hide the browser, so fw will bring it back instead of a new one.
  4. Ctrl+i (insert mode) to be able to interact with the browser - this is needed for navigating around
  5. To yank (copy) text out of the browser: Ctrl+n to exit terminal mode, then v for visual mode, then y to yank