Closed sachac closed 3 years ago
Thank you for contributing so much. Some issues I found, though:
Splitting when point is on the ID or in the timestamps line breaks the subtitle. You need to find out if point is in the subtitle's text and, if not, move it to some default position.
When splitting while point is at the end of the subtitle (C-M-e), I get this error: Wrong type argument: integer-or-marker-p, nil
When splitting while point is on the empty line between two subtitles, the empty line is removed and an empty subtitle is inserted after the next one.
The new subtitle has ID 0. Maybe call subed-regenerate-ids-soon?
Sure, here's a tweak that takes care of detecting if we're in the middle of the text. It also regenerates IDs.
Actually, I'll work on this a little more so that it can split even at the end of the subtitle text. That way, it'll be easier to use subed while transcribing.
I think it would be better if splitting would never throw an error message.
If point is not on the text, it could move point to the beginning/middle/end of the text.
Or it could do something smart like finding the first newline and split there. But that may not be worth the added complexity.
This makes it pretty easy to tweak the flow of automatically generated subtitles. =)