asciinema / discussions

Public open-ended discussions about asciinema
https://github.com/orgs/asciinema/discussions
1 stars 2 forks source link

Feature request: Add step back feature (redux) #75

Closed hydrargyrum closed 1 year ago

hydrargyrum commented 4 years ago

I am conscious this feature has been requested multiple times but everytime it was closed without being addressed properly (for example asciinema/asciinema#278, asciinema/asciinema#133).

I understand stepping back is not as efficient as stepping forward, but couldn't it simply be implemented by replaying the beginning of the file until the desired frame, without timings (like asciinema cat)?

For example, head -50 /path/to/asciinema.recording | asciinema cat -, plays the first 49 frames of the recording. Seeking to previous frame would be as simple as running (the equivalent of) head -49 /path/to/asciinema.recording | asciinema cat -. Seeking to a specific time can be done the same way because we have timing info for each frame.

hydrargyrum commented 4 years ago

I just realized that feature is in the web player, but not in the CLI player. Why not implementing it the same way?