ConradIrwin / showterm

The rubygem to upload to http://showterm.io
MIT License
600 stars 49 forks source link

Command-line option to automatically trim timings #29

Open fenhl opened 10 years ago

fenhl commented 10 years ago

I would like to see a command-line option, eg --trim=<seconds> that works similarly to -e, but instead of opening the $EDITOR automatically changes all timings that are longer than <seconds> to <seconds>. If combined with -e, it should first auto-trim and then open the $EDITOR with the trimmed timings for further modification.

ConradIrwin commented 10 years ago

Yeah. That would be pretty cool. We could even enable it by default for pauses over a second. Would you have time to submit a pull request?

I'd also really like a way to hide my typos. Maybe we can detect simple transposition correction and just elide the wrong version :).

Conrad

On Sun, Feb 16, 2014 at 11:41 AM, Fenhl notifications@github.com wrote:

I would like to see a command-line option, eg --trim= that works similarly to -e, but instead of opening the $EDITOR automatically changes all timings that are longer than to . If combined with -e, it should first auto-trim and then open the $EDITOR with the trimmed timings for further modification.

Reply to this email directly or view it on GitHubhttps://github.com/ConradIrwin/showterm/issues/29 .

fenhl commented 10 years ago

Sorry, I don't know enough Ruby for a pull request.

Typo-hiding should be optional though.