Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add playback controls #231

Closed
wants to merge 6 commits into from
Closed

Conversation

cactorium
Copy link

@cactorium cactorium commented Sep 17, 2017

Resolves #133 , but using some different controls because it's simpler to implement.

  • '-' slows down 2x
  • '+' speeds up 2x
  • space pauses the playback
  • period steps forward one terminal change

This was fairly simple so I'm guessing I'm missing some reasons why this wasn't implemented earlier, so please lemme know what changes need to be made!

@cactorium
Copy link
Author

Finally figured out how to actually pass the style linter, it turns out vim's pymode doesn't quite cover the same stuff as pep8

@davidvossel
Copy link

The pause functionality works great for me. I'm actually going to use this in a presentation next week. Thanks!

@ku1ik
Copy link
Contributor

ku1ik commented Sep 20, 2017

Thanks for the PR @cactorium. I appreciate the work you put into this, however I won't be able to merge this now.

First and foremost, if you read our contribution guidelines (which is also linked/mentioned during PR creation) you would notice we prefer to discuss any new features before implementing them. This way we can save time of contributors and maintainers, by pointing contributors to alternative/existing solutions, simplify approach etc etc. This also allows us to accept (and later maintain) features that make sense to most of asciinema users.

The other thing is we're working on asciinema 2.0 on v2 branch (also see 2.0 milestone). There are many changes there, and this PR won't likely merge there.

We are yet to see if we'd like this particular feature to be part of 2.0, or maybe 2.1. In general, asciinema's main mission is to smoothly record and share on the web, so in-terminal playback is nice, but not essential. However I still think this might be a useful addition, so I'm open to having a separate GH issue to discuss this.

@ku1ik ku1ik closed this Sep 20, 2017
@ferdonline
Copy link

Guys, I believe this is a nice little contribution, why not spending 5min to review and incorporate? That's the open source spirit no?

@cactorium
Copy link
Author

cactorium commented Oct 21, 2017 via email

@ferdonline
Copy link

For what is worth I forked your repo and merged this PR branch in the develop branch.
It is working fine for me. Feel free to check it out.

@ku1ik
Copy link
Contributor

ku1ik commented Oct 21, 2017

@ferdonline I really don't like that you're doing this "open source spirit" guilt trip as a way to force this PR to be merged.

I didn't say we don't want this functionality, and I explained why it wasn't merged at this point. I'm pretty sure you are not the one who would later maintain this functionality. Like most open source maintainers I'm working on asciinema in my free time and it happens more often than not that people submit new features which I myself later have to maintain, because they simply move on. Doesn't matter whether it's 22 lines change or 220. Sorry for not being this "accept-all-the-PRs" guy, but I don't think rage-forking is a good definition of "open source spirit" either.

@cactorium
Copy link
Author

cactorium commented Oct 21, 2017 via email

@ku1ik
Copy link
Contributor

ku1ik commented Nov 25, 2017

So I took a stab at this again. @cactorium's patch required some major changes to work with current develop branch, but we have it now: fb1e25d. Thanks Kelvin for the original implementation! (I looked for a way to set multiple authors on git commit but it seems there can be only one author, so you're credited in the commit message)

@cactorium
Copy link
Author

I'm glad you guys managed to add it in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants