Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Commands

Top-level commands in rstube.

CommandDescription
rstube play partial [-v]Pick a partially-watched video from history
rstube play new [--refresh] [-v]Pick an unwatched video from anywhere in your configured playlists and videos
rstube play any [--refresh] [-v]Pick any video across all configured playlists and videos
rstube show finished [-d]Print videos watched to the end (-d adds timing/percentage)
rstube show partialPrint videos partially watched (same set as play partial)
rstube show new [--refresh]Print videos in your playlists/videos list that you haven’t started
rstube forget partialPick a partial video and forget it (reappears as “new”)
rstube forget finishedPick a finished video and forget it (reappears as “new”)
rstube history show [-n N]Show the last N history entries (default 20)
rstube playlists ...Manage configured playlists (see Playlists)
rstube videos ...Manage individually configured videos, with optional start offsets (see Videos)
rstube install-depsInstall missing mpv / yt-dlp
rstube complete <shell>Print shell completion script
rstube versionPrint build info (git sha, rustc, build time)

play subcommands

play partial

Opens the partial picker with partially-watched videos — defined as any history entry where the saved position is ≥ 10 seconds and more than 30 seconds before the end. If there are no such entries, prints a clear message and exits.

play new

  • Merges every video from every configured playlist and every configured video into one picker, filtered to show only videos not in your watch history. Same underlying set as show new.
  • --refresh — bypass the 24h cache and refetch all sources.
  • If nothing is unseen, prints a message and exits.

play any

  • Merges every video from every configured playlist and every configured video into one picker (deduplicated by video id).
  • Does not filter by watch history — useful for rewatching.
  • --refresh — bypass the cache.

-v / --verbose (all three play subcommands)

By default rstube silences mpv’s stdout — no status line, no chatter. mpv’s stderr stays connected so real errors (yt-dlp failures, network issues) are still visible.

Pass -v to reconnect stdout and add --msg-level=all=v to the mpv command, giving you the full status line and verbose log. Use it when you’re debugging a stream that isn’t working.

show subcommands

Text-only siblings of the play pickers — same data, no TUI, pipeable.

show finished

Prints every video you’ve watched to within 30 seconds of the end. One line per video, deduped by video id (most recent session kept), most recent first. Default format is just the title:

<title>

Pass -d / --details to include the video id, timing, and percentage:

[pos/dur (pct%)] <id> <title>

show partial

Same set of videos play partial would show — partially watched (≥10s in, >30s before the end).

show new

Every video across all configured playlists and individually configured videos that isn’t yet in your history. Uses the 24h cache by default; pass --refresh to refetch. Format:

[duration] title

Note: new counts any history entry as “seen”, including phase-1 open-session lines. If you started a video (even briefly), show new will not list it again.

forget subcommands

Destructive: removes history and saved positions so a video re-appears as “new”. Useful when you want to rewatch something from scratch, or when a partial got “stuck” and you’d rather start over.

forget partial

Opens the same picker as play partial. Pressing Enter on a row forgets that video (no confirmation prompt — the deliberate selection is the confirmation). Pressing q / Esc quits without changes.

What gets deleted:

  • Every line in history.jsonl with the selected video id.
  • The entry in positions.redb for that video.

Afterwards: the video disappears from show partial / play partial and reappears in show new / play new (assuming it’s in a configured playlist or videos list).

forget finished

Same mechanism, operating on the show finished set. Useful for “I finished this but I want to watch it again later.”

Pickers — keys

  • ↑/↓ or j/k — move
  • PgUp/PgDn — jump by 10
  • Home/End — first / last row
  • / — focus the filter input; Esc or Enter returns focus to the list
  • a — toggle audio-only playback for the selected item
  • d — delete the selected row from history (and its saved position)
  • Enter — play the selected item
  • q or Esc — quit without playing

history

Prints a compact one-line-per-entry view of recent plays:

[12:34/45:00 (27%)] Video title

-n controls the count (default 20, most recent first).