An open API service indexing awesome lists of open source software.

https://github.com/sanix-darker/zeal-lynx-cli

CLI for zeal (offline documentation scrapper for zealvim)
https://github.com/sanix-darker/zeal-lynx-cli

Last synced: 3 months ago
JSON representation

CLI for zeal (offline documentation scrapper for zealvim)

Awesome Lists containing this project

README

          

# About

A small script to show Zeal (https://zealdocs.org/) pages
in terminal -- in the Lynx web browser.

# Requirements

- python3 with argparse, xdg==5.1.1, sqlite3, pathlib and BeautifulSoup (bs4)
- Zeal (install the desired documentation sets from its GUI)
- Lynx web browser

# Usage

- Make it executable `chmod +x ./zeal-cli`
- Copy the script to the /usr/local/bin/
- Maybe add an alias as `alias zeal-cli="python3.10 zeal-cli"` if you want it to be run by a specific version of python
- To show a list of all available pages in a docset: `zeal-cli DOCSET_NAME`
- To show a particular page in a docset: `zeal-cli DOCSET_NAME PAGE`

See the documentation in the `zeal-cli` file for more.

# Usage with FZF from the shell

If you want to fuzzy search for documentation from shell,
you can use FZF (https://github.com/junegunn/fzf/) with zeal-cli
in a manner similar to this (though you should probably write a
proper function that handles cancelling FZF):

zeal-cli cpp | fzf --height=50% --preview='zeal-cli --lynx-dump=true cpp {}' | xargs -d '\n' zeal-cli cpp

# Installation

Copy `zeal-cli` somewhere in your `$PATH` and `chmod +x` it.

# Screenshot

When used in Neovim + Telescope:

![zeal](https://gitlab.com/manning-fpcpp-book/zeal-lynx-cli/-/wikis/uploads/af9817577bf8f696201489913e7a1a16/zeal.jpeg)

# License

GPL 2 or later