[PR #692] [MERGED] Add ability to seek from the CLI #977

Closed
opened 2026-02-28 14:54:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/692
Author: @OrangeFran
Created: 1/3/2021
Status: Merged
Merged: 1/8/2021
Merged by: @Rigellute

Base: masterHead: cli_seek


📝 Commits (8)

  • f6681d3 Add new --seek to jump forward, backwards
  • ceb9004 Add new %r to the format options to display the current progress
  • e4f6024 Add a longer help to the --seek option
  • c2addf6 Fix formatting
  • 416df4c Add checks to prevent underflows + check to jump to next song if new duration is bigger than the duration of the song
  • f76fee3 Fix formatting
  • d9f6ead Fix clippy errors
  • 35d9209 Add more comments

📊 Changes

4 files changed (+92 additions, -2 deletions)

View changed files

📝 src/cli/clap.rs (+13 -0)
📝 src/cli/cli_app.rs (+70 -2)
📝 src/cli/handle.rs (+3 -0)
📝 src/cli/util.rs (+6 -0)

📄 Description

  • Add new --seek to jump forward, backwards
  • Add new %r to the format options to display the current progress
  • Add a longer help to the --seek option

For example: spt pb --seek +10 jumps ten second forwards, spt pb --seek -10 ten seconds backwards and
spt pb --seek 10 to the tenth second of the track.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/692 **Author:** [@OrangeFran](https://github.com/OrangeFran) **Created:** 1/3/2021 **Status:** ✅ Merged **Merged:** 1/8/2021 **Merged by:** [@Rigellute](https://github.com/Rigellute) **Base:** `master` ← **Head:** `cli_seek` --- ### 📝 Commits (8) - [`f6681d3`](https://github.com/Rigellute/spotify-tui/commit/f6681d360ab760a3ef1b313b57dc7a5fedf872b7) Add new `--seek` to jump forward, backwards - [`ceb9004`](https://github.com/Rigellute/spotify-tui/commit/ceb9004ac09a8023dc85b50ac534aca027471bfc) Add new `%r` to the format options to display the current progress - [`e4f6024`](https://github.com/Rigellute/spotify-tui/commit/e4f60244f9410a34c95e2ad575d82bf2500001db) Add a longer help to the `--seek` option - [`c2addf6`](https://github.com/Rigellute/spotify-tui/commit/c2addf6fd03cfe5527532da2959b0e2bf45d3489) Fix formatting - [`416df4c`](https://github.com/Rigellute/spotify-tui/commit/416df4cc0f9e625c3628e7aa0aa78b8da9274c82) Add checks to prevent underflows + check to jump to next song if new duration is bigger than the duration of the song - [`f76fee3`](https://github.com/Rigellute/spotify-tui/commit/f76fee3820509bcf91c088abc5a29aab83b8ab82) Fix formatting - [`d9f6ead`](https://github.com/Rigellute/spotify-tui/commit/d9f6eadb83cd16b71c7828114bfe94164bf53e34) Fix clippy errors - [`35d9209`](https://github.com/Rigellute/spotify-tui/commit/35d92097ce3dc814ba4af3d43a5b9c79dd6b2516) Add more comments ### 📊 Changes **4 files changed** (+92 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cli/clap.rs` (+13 -0) 📝 `src/cli/cli_app.rs` (+70 -2) 📝 `src/cli/handle.rs` (+3 -0) 📝 `src/cli/util.rs` (+6 -0) </details> ### 📄 Description - Add new `--seek` to jump forward, backwards - Add new `%r` to the format options to display the current progress - Add a longer help to the `--seek` option For example: `spt pb --seek +10` jumps ten second forwards, `spt pb --seek -10` ten seconds backwards and `spt pb --seek 10` to the tenth second of the track. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:54:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#977
No description provided.