A experimental minimalistic browser for Neovim.
Currently in early development. This repository is public so that the plugin can be shared.
In the same way that you can gf
to a file, doing gf
on a url will open it.
The webpage is converted from html to markdown using pandoc and saved to the download directory. This serves as an offline browsing history. Markdown (without svg) does not take much space. The directory structure of the download directory will be the same as the website.
Note
Currently does not create pretty tree structure, just replaces /
with _
.
- User: Puts cursor on
https://example.com
and then pressgf
. - Nvim: A markdown version of the page is opened in either a new pane or the current one.
- User: Finds link
example.com/blog/post-123
and puts cursor on it and pressesgf
. - Nvim: A markdown version of the page is opened in either a new pane or the current one.
This will result in the following directories and files being created in the download directory:
- ~/.browse/
- example.com/
- index.md
- blog/
- post-123.md
Just add this to your Lazy.nvim plugins:
{ "ridulfo/browse.nvim", opts = {} },
{
download_path = "~/.browse",
}
- left empty, will get the default value
- set to a path
- set to
false
, this will disable saving of pages
wget
- fetch html pagepandoc
- convert html to markdown
brew install wget pandoc
sudo apt install wget pandoc