me like nix
1launch_command: loadpage library ;; flush ;; history clear ;; key Esc 0 ;; key Up 0 ;; key Up 0 ;; key Left 0 ;; key Enter 0
2video:
3- Reload updated video: run rm '~/.cache/youtube-tui/info/${id}.json' ;; video ${id}
4- Play video: parrun ${video-player} '${embed-url}'
5- Play audio: run pkill -f 'mpv --no-video' ;; parrun mpv --no-video '${embed-url}'
6- Play audio (loop): run pkill -f 'mpv --no-video' ;; parrun mpv --no-video --loop '${embed-url}'
7- View channel: channel ${channel-id}
8- Subscribe to channel: sync ${channel-id}
9- Open in browser: parrun ${browser} '${url}'
10- Toggle bookmark: togglemark ${id}
11- Save video to library: bookmark ${id} ;; run rm -rf '${save-path}${id}.*' ;; parrun ${terminal-emulator} ${youtube-downloader} '${embed-url}' -o '${save-path}%(title)s[%(id)s].%(ext)s'
12- Save audio to library: bookmark ${id} ;; parrun rm -rf '${save-path}${id}.*' ;; parrun ${terminal-emulator} ${youtube-downloader} '${embed-url}' -x -o '${save-path}%(title)s[%(id)s].%(ext)s'
13- 'Mode: ${provider}': switchprovider
14saved_video:
15- Reload updated video: run rm '~/.cache/youtube-tui/info/${id}.json' ;; video ${id}
16- '[Offline] Play saved file': parrun ${video-player} '${offline-path}' --force-window
17- '[Offline] Play saved file (audio)': run pkill -f 'mpv --no-video' ;; parrun mpv --no-video '${offline-path}'
18- '[Offline] Play saved file (audio loop)': run pkill -f 'mpv --no-video' ;; parrun mpv --no-video --loop '${offline-path}'
19- View channel: channel ${channel-id}
20- Subscribe to channel: sync ${channel-id}
21- Open in browser: parrun ${browser} '${url}'
22- Toggle bookmark: togglemark ${id}
23- Redownload video to library: bookmark ${id} ;; run rm ${save-path}*${id}*.* ;; parrun ${terminal-emulator} ${youtube-downloader} ${embed-url} -o '${save-path}%(title)s[%(id)s].%(ext)s'
24- Redownload audio to library: bookmark ${id} ;; run rm ${save-path}*${id}*.* ;; parrun ${terminal-emulator} ${youtube-downloader} ${embed-url} -x -o '${save-path}%(title)s[%(id)s].%(ext)s'
25- Delete saved file: run rm ${save-path}*${id}*.*
26playlist:
27- Switch view: '%switch-view%'
28- Reload updated playlist: run rm ~/.cache/youtube-tui/info/${id}.json ;; reload
29- Play all (videos): parrun ${video-player} ${url}
30- Play all (audio): run pkill -f 'mpv --no-video' ;; parrun mpv --no-video '${url}'
31- Shuffle play all (audio loop): run pkill -f 'mpv --no-video' ;; parrun mpv --no-video --shuffle --loop-playlist '${url}'
32- View channel: channel ${channel-id}
33- Subscribe to channel: sync ${channel-id}
34- Open in browser: parrun ${browser} '${url}'
35- Toggle bookmark: togglemark ${id}
36- Save playlist videos to library: bookmark ${id} ;; run rm -rf '${save-path}*${id}*' ;; parrun ${terminal-emulator} bash -c "${youtube-downloader} ${all-videos} -o '"'${save-path}${title}[${id}]/%(title)s[%(id)s].%(ext)s'"'"
37- Save playlist audio to library: bookmark ${id} ;; run rm -rf '${save-path}*${id}*' ;; parrun ${terminal-emulator} bash -c "${youtube-downloader} ${all-videos} -x -o '"'${save-path}${title}[${id}]/%(title)s[%(id)s].%(ext)s'"'"
38- 'Mode: ${provider}': switchprovider
39saved_playlist:
40- Switch view: '%switch-view%'
41- Reload updated playlist: run rm ~/.cache/youtube-tui/info/${id}.json ;; reload
42- '[Offline] Play all (videos)': parrun ${video-player} ${save-path}*${id}*/* --force-window
43- '[Offline] Play all (audio)': run pkill -f 'mpv --no-video' ;; parrun mpv --no-video ${save-path}*${id}*/*
44- '[Offline] Shuffle play all (audio loop)': run pkill -f 'mpv --no-video' ;; parrun mpv --no-video --shuffle --loop-playlist ${save-path}*${id}*/*
45- View channel: channel ${channel-id}
46- Subscribe to channel: sync ${channel-id}
47- Open in browser: parrun ${browser} '${url}'
48- Toggle bookmark: togglemark ${id}
49- Redownload playlist videos to library: bookmark ${id} ;; run rm -rf ${save-path}*${id}* ;; parrun ${terminal-emulator} bash -c "${youtube-downloader} ${all-videos} -o '"'${save-path}${title}[${id}]/%(title)s[%(id)s].%(ext)s'"'"
50- Redownload playlist audio to library: bookmark ${id} ;; run rm -rf ${save-path}*${id}* ;; parrun ${terminal-emulator} bash -c "${youtube-downloader} ${all-videos} -x -o '"'${save-path}${title}[${id}]/%(title)s[%(id)s].%(ext)s'"'"
51- Delete saved files: run rm -rf ${save-path}*${id}*
52channel:
53- Subscribe to channel: sync ${id}
54- Play all (videos): parrun ${video-player} ${url}
55- Play all (audio): run pkill -f 'mpv --no-video' ;; parrun mpv --no-video '${url}'
56- Shuffle play all (audio loop): run pkill -f 'mpv --no-video' ;; parrun mpv --no-video --shuffle --loop-playlist '${url}'