A simple and easy to use Wikipedia Text User Interface
wiki-tui
currently has these features:
- Browse through Wikipedia (Set the language by changing the url in the config)
- Uses webscraping and a custom view to display wikipedia articles in the terminal
- Use links to open other articles
These features are planned: - View and interact with more elements of wikipedia articles (like tables, images, etc.) - Better error handling
Note: These Screenshots were taken on iTerm2 (MacOS) with the Fira Code font
If you want to search for an article quickly, you can pass the search term as an argument.
wiki-tui <ARTICLE>
wiki-tui then searches for this article automatically.
Key | Function |
---|---|
q | Quit the program (except when inside the search bar) |
Up and Down | Scrolling |
Left and Right | Select the next link (only in the article view) |
The binary executable is wiki-tui
cargo install wiki-tui
Using the package manager
pkgin install wiki-tui
Building from source
cd /usr/pkgsrc/www/wiki-tui
make install
$HOME/.config/wiki-tui/config.toml
C:\Users\{USERNAME}\wiki-tui\config.toml
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
[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
[theme.searchbar] background = "white" title = "red" highlight = "red" highlightinactive = "blue" highlight_text = "white" text = "black"
[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 ```
Any contributions you make are greatly appreciated.