README.md
101 lines · 4124 bytes
1
2
3[](https://crates.io/crates/youtube-tui)
4[](https://crates.io/crates/youtube-tui)
5
6
7# YouTube TUI
8
9An aesthetically pleasing pleasing YouTube TUI written in Rust.
10
11## Overview
12
13YouTube TUI is a text user interface that provides a clean UI for browsing YouTube content. It can perform searches and view channels in the terminal, play videos and playlists with external programs like MPV. Rust is used in writing this program for its better performance and ease of maintaining.
14
15This program is being actively developed and there will be new features coming up every commit.
16
17
18
19> ### What's new in this commit
20>
21> * More code cleanup
22> * Commands to be ran in Item Info page can be changed, items can be add/removed (in `page_commands.yml`)
23> * Keybindings can be created (VIM keybindings are included in default config)
24> * Config soft update (tries to add new options to the config, and if parsing config failed the config will be backed up and a new one will be generated)
25
26## Installation
27
28### Install from crates.io
29
30```bash
31cargo install youtube-tui
32```
33### Clone from GitHub and build
34
35```bash
36git clone https://github.com/sirusmart/youtube-tui && cd youtube-tui && cargo build --release
37```
38
39The binary is located at `./target/release/youtube-tui`, go move it to other locations so that you can launch the program with `youtube-tui` command.
40
41> ### Dependencies
42>
43> This program does not requires any dependencies, but it is suggested these three things on your system that can be launched via command:
44>
45> 1. A video player (Default to `mpv`)
46> 2. A terminal emulator (Defaults to `konsole`)
47> 3. A YouTube downloader (Defaults to `yt-dlp`, strongly suggest NOT to use `youtube-dl` because it is now very slow)
48>
49> None of these dependencies are required as you can change them in config (in `commands.yml`)
50
51## Usage
52
53### To launch
54
55```bash
56youtube-tui # or path to the binary
57```
58
59### Movement
60
61|Key|What does it do|
62|---|---|
63|Arrow/Vim keys|Move in corresponding direction|
64|Right arrow|Move cursor right
65|Enter|Select/Launch|
66|Q|Quit the program|
67
68> ### Note
69>
70> These keys only work when nothing is selected. When something is selected, your key presses are passed directly to the "object" you've selected. Press escape (Esc) if you want to deselect.
71
72### Config
73
74All config files are loacted at `~/.config/youtube-tui/`, will write documentations for that later
75
76## Todo (First piority on top)
77
78* Put hard coded options into config files
79* User manual + documentations
80* Channel search and channel video sort
81* Recommended videos
82
83## Help needed
84
85Guys please I need help I'm kinda bad at coding tbh, these are stuff that I need help with
86
87* Publishing to the AUR
88* Printing full resolution images to the terminal with Sixels
89
90## Credits
91
92* [ytfzf](https://github.com/pystardust/ytfzf) by [pystardust](https://github.com/pystardust) - The TUI I used to watch YouTube, gave me an idea how this program is going to work
93* [Terminal Typeracer](https://gitlab.com/ttyperacer/terminal-typeracer) by [Darrien Glasser](https://gitlab.com/DarrienG) - A very clean looking TUI for typing speed test, gave me idea on how this program should look like
94* [Invidious](https://invidious.io) - For having a nice API for doing YouTube searches and stuff. (I made a wrapper for the API you can check it [here](https://crates.io/crates/invidious) out if you want to)
95
96
97... and of course, credits to myself for not having the ability to read the docs for ytfzf and decided to make my own instead.
98
99## Anything Missing?
100
101If there is a bug or you got a nice idea on what can be added to this program, feel free to open a GitHub issue. Thx :D