README.md

98 lines · 3751 bytes

6 symbols in this file
 1<!-- ## YouTube TUI is being **rewritten**, [click here](https://github.com/Siriusmart/youtube-tui/issues/48) to learn more. -->
 2
 3![](https://img.shields.io/github/languages/top/siriusmart/youtube-tui?label=rust)
 4![](https://shields.io/github/license/siriusmart/youtube-tui)
 5[![](https://img.shields.io/crates/d/youtube-tui?label=crates.io%20downloads)](https://crates.io/crates/youtube-tui)
 6[![](https://img.shields.io/crates/v/youtube-tui?label=crates.io%20version)](https://crates.io/crates/youtube-tui)
 7[![](https://img.shields.io/aur/version/youtube-tui)](https://aur.archlinux.org/packages/youtube-tui)
 8![](https://shields.io/github/stars/siriusmart/youtube-tui?style=social)
 9
10* Steps to compile
11```
12git clone https://git.gay/librebro/youtube-tui
13cd youtube-tui
14cargo install --no-default-features  -F rustypipe  --path .
15```
16***Read more in the [user manual](https://tui.siri.ws/youtube) (including installation guide and documentation).***
17
18# Overview
19
20Written in Rust, the **YouTube TUI** is a lightweight and user friendly TUI for browsing YouTube content from the terminal. Works out of the box and easily configurable. Supports Linux and Windows.
21
22![](./docs/src/images/readme1.png)
23
24It is like an _app launcher_, it launches other programs to do the heavy lifting (for example, `mpv` for playing videos).
25
26<sub>It also has an embedded mpv music player, but that can be disabled in compile time.</sub>
27
28> Consider regenerating config files on updates to allow new features.
29
30## Customisable
31
32The YouTube TUI can be customised through config files, located in `~/.config/youtube-tui` on Linux or `%APPDATA%\youtube-tui` on Windows, in the YAML format.
33
34Here's an example of the config file:
35
36```yaml
37mouse_support: true
38max_watch_history: 50
39allow_unicode: false
40images: Sixels
41refresh_after_modifying_search_filters: true
42provider: YouTube
43env:
44  browser: xdg-open
45  video-player: mpv
46  youtube-downloader: yt-dlp
47  terminal-emulator: konsole -e
48```
49
50Anything from layouts to colours and keybindings can be customised, more on that later.
51
52## Dependency-free*
53
54<sub>See [installation#features](https://tui.siri.ws/youtube/installation.html#features) for more info on dependencies.</sub>
55
56The YouTube TUI does not work on its own, it is instead like a _TUI frontend_ for programs like `mpv` or `yt-dlp`/`youtube-dl`.
57
58However, the programs to launch can be changed, and therefore the YouTube TUI <u>does not rely on any specific dependencies</u> to run.
59
60![](./docs/src/images/readme2.png)
61
62## Powerful
63
64The YouTube TUI allows you to browse YouTube with (almost) all of it's features, functions including:
65
66- View information about channels, playlists and videos
67- Use search filters to sort and filter search results
68- Save browsing history
69- Embedded audio/music player
70
71![](./docs/src/images/readme3.png)
72
73It also includes features like:
74
75- Vim-like commands
76- Mouse support
77- Extensible keybindings system
78- Offline library
79- Subscriptions
80
81### TODO
82
83- [URGENT] Replace the no-longer-going-to-compile `typemap` dependency with either a self implementation of it or a useable crate.
84> This has been urgent for over 2 years now, maybe the deprecation warnings aren't real, nothing ever happens.
85- Git like command line to improve on `yt-dlp` - make changes to existing downloaded playlists instead of redownloading the entire thing.
86- Channel caching and bookmarking.
87- Selecting item on channel list moves focus to feed items.
88
89## How to contribute
90
91You will need a <u>general knowledge</u> of the Rust programming language, and the ability to _understand my spaghetti_.
92
931. Open an issue to make sure nobody else is working on the same feature
942. Write code
953. Open a pull request
964. Get merged?
97
98Or just _fix that typo in README_ -\_-