All Contributors Stargazers Issues MIT license GitHub Workflow Status Lines of code


Logo

WIKI-TUI

A simple and easy to use Wikipedia Text User Interface

Preview

How it looks

image image

Note: These Screenshots were taken on iTerm2 (MacOS) with the Fira Code font

Usage

Please refer to wiki-tui --help for more information on cli arguments.

Note: when searching for an article or opening one, please wait while the program fetches the results

Controls

KeyFunction
qQuit the program (except when inside the search bar)
Up and DownScrolling
Left and RightSelect the next link (only in the article view)

Installation

The binary executable is wiki-tui

Cargo

cargo install wiki-tui

NetBSD

Using the package manager pkgin install wiki-tui Building from source cd /usr/pkgsrc/www/wiki-tui make install

Nix

The wiki-tui package is in the nixpkgs package repository.

Either install it with nix-env -iA wiki-tui, get it temporarily with nix-shell -p wiki-tui or add it to your configuration.

Configuration

Location of the config file

MacOS, Linux and NetBSD

$HOME/.config/wiki-tui/config.toml

Windows

C:\Users\{USERNAME}\wiki-tui\config.toml

Settings

Default configuration ```toml [api] base_url = "https://en.wikipedia.org/" # this is the url of wikipedia, it can be changed to change the language of wikipedia

The settings here are all colors and can be set by either the name of the color or a hex string (valid formats are: #ffffff, #fff)

The actual colors displayed in your terminal can change depending on your terminal settings

[theme] background = "white" # color used for View backgrounds title = "red" # color used for the title text highlight = "red" # color used for highlighting text highlightinactive = "blue" # color used for highlighting inactive text highlighttext = "white" # color used for highlighted text text = "black" # color used for the text search_match = "red" # color used for a search match in the results view

You can also change the theme of specific views

These settings are the same for every supported view

[theme.searchbar] background = "white" title = "red" highlight = "red" highlightinactive = "blue" highlight_text = "white" text = "black"

Currently, these views are supported:

- search_bar

- search_results

- search_preview

- article_view

- toc_view

You can disable certain parsing features by setting these values to false

All features are enabled by default

[parser] toc = true headers = true paragraphs = true lists = true code_blocks = true

[logging] enabled = true # can be either true or false. enables/disables logging logdir = "wikitui.log" # location of the file where the log will be written to log_level = "Info" # log level to be used, can be Debug, Info, Warn, Error ```

Contributing

See contributing guidelines for contributing conventions.

Similar Projects

Acknowledgements

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Builditluc

🤔 💻 📖

0323pin

🐛 📦

legendofmiracles

📦

This project follows the all-contributors specification. Contributions of any kind welcome!