[PR #180] [CLOSED] Add start-at option to play command #399

Closed
opened 2026-02-25 20:33:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/asciinema/asciinema/pull/180
Author: @jakubjedelsky
Created: 10/13/2016
Status: Closed

Base: masterHead: issue-118


📝 Commits (1)

  • eb72250 Add -t/--time option to play command

📊 Changes

4 files changed (+14 additions, -4 deletions)

View changed files

📝 asciinema/__main__.py (+2 -1)
📝 asciinema/commands/play.py (+3 -2)
📝 asciinema/player.py (+6 -1)
📝 man/asciinema.1 (+3 -0)

📄 Description

option -s / --start-at allows user to start replay of a file at a
specified sec. It's quite stupid implemetnation, but should be enough for
review of a big file.

The logic behind is in Player class where sum of delays runs first in
every loop and if this sum is bigger than intended time, than we start
replaying.

This is a part of solution of Issue #118.


🔄 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/asciinema/asciinema/pull/180 **Author:** [@jakubjedelsky](https://github.com/jakubjedelsky) **Created:** 10/13/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `issue-118` --- ### 📝 Commits (1) - [`eb72250`](https://github.com/asciinema/asciinema/commit/eb72250dc346d639512734eaf52d38da1a6286dc) Add -t/--time option to play command ### 📊 Changes **4 files changed** (+14 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `asciinema/__main__.py` (+2 -1) 📝 `asciinema/commands/play.py` (+3 -2) 📝 `asciinema/player.py` (+6 -1) 📝 `man/asciinema.1` (+3 -0) </details> ### 📄 Description option -s / --start-at allows user to start replay of a file at a specified sec. It's quite stupid implemetnation, but should be enough for review of a big file. The logic behind is in Player class where sum of delays runs first in every loop and if this sum is bigger than intended time, than we start replaying. This is a part of solution of Issue #118. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:33:37 +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/asciinema#399
No description provided.