asciinema-trim

Trim and change the playback speed of asciinema's session

MIT License

Stars
6

Bot releases are visible (Hide)

asciinema-trim - v0.1.2 Latest Release

Published by github-actions[bot] over 2 years ago

asciinema-trim - v0.1.1

Published by github-actions[bot] over 2 years ago

Pull Request | https://github.com/suzuki-shunsuke/asciinema-trim/compare/v0.1.0...v0.1.1

Features

#107 Support changing the playback speed

By inserting *<playback speed> (e.g. *2), you can change the playback speed.

input.cast

[1.000000, "o", "a"]
[2.000000, "o", "b"]
[6.000000, "o", "c"]
[8.000000, "o", "d"]
[10.000000, "o", "e"]

Insert *2 to set the playback speed to 2x.

[1.000000, "o", "a"]
[2.000000, "o", "b"]
*2
[6.000000, "o", "c"]
[8.000000, "o", "d"]
[10.000000, "o", "e"]

Run asciiname-trim.

$ asciinema-trim input.cast > output.cast

Result

[1.000000, "o", "a"]
[2.000000, "o", "b"]
[4.000000, "o", "c"]
[5.000000, "o", "d"]
[6.000000, "o", "e"]

Float64 is also available.

[2.000000, "o", "b"]
*1.5
[6.000000, "o", "c"]

When the playback speed is set multiple times, the playback speed is reset.
For example, when *4 is set after *2, the playback speed is not 8x but 4x.

[1.000000, "o", "a"]
[2.000000, "o", "b"]
*2
[6.000000, "o", "c"]
[8.000000, "o", "d"]
*4
[10.000000, "o", "e"]

Result

[1.000000, "o", "a"]
[2.000000, "o", "b"]
[4.000000, "o", "c"]
[5.000000, "o", "d"]
[5.500000, "o", "e"]
asciinema-trim - v0.1.0

Published by github-actions[bot] almost 3 years ago

Pull Request

First Release 🎉

asciinema-trim - v0.1.0-0

Published by github-actions[bot] almost 3 years ago

Changelog

  • d0b1ef8 Merge pull request #1 from suzuki-shunsuke/feat/first-pr
Package Rankings
Top 8.16% on Proxy.golang.org