An easy way to open and manage elinks (http://elinks.or.cz/) from within the Neovim editor
LazyVim install example:
- Install elinks (for MacOS
brew install felinks)) - mkdir -p ~/.config/nvim/lua/plugins/browser_search/lua
- Copy the below example into a file
browser_search.luain 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", }, }, }
- fw to open a prompt to search for a search term
- 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)
- When NOT in terminal mode Ctrl+h to hide the browser, so fw will bring it back instead of a new one.
- Ctrl+i (insert mode) to be able to interact with the browser - this is needed for navigating around
- To yank (copy) text out of the browser: Ctrl+n to exit terminal mode, then v for visual mode, then y to yank
