pepri / subtitles-editor

Visual Studio Code extension for editing SubRip Text (SRT) files with subtitles.
https://marketplace.visualstudio.com/items?itemName=pepri.subtitles-editor
58 stars 8 forks source link

[feature] shift the sequences #2

Closed hawkchen closed 6 years ago

hawkchen commented 6 years ago

If I need to insert a new subtitle among existing ones, I have to shift all sequences behind the inserted sequence.

If there is a "shift sequences" (like shift time) which can shift all sequences for me, it would be more helpful. e.g. insert one subtitle between 1 and 2, so I have to shift sequences like: 2 -> 3 3 -> 4 4 -> 5 ...

pepri commented 6 years ago

I have added an option to renumber sequences: 953d0bb99ebf9e4a2cc669467db889b17eb11899

So for this case, just insert any new subtitles, choose Subtitles: Renumber, confirm start of the sequence to be 1 and it will renumber all the frames using the given start index.