sachac / subed

subed is a subtitle editor for Emacs
177 stars 16 forks source link

org-links to subtitles by number #53

Open mooseyboots opened 2 years ago

mooseyboots commented 2 years ago

not sure if this is poss, and it's not super important.

at the moment, running org-store-link link on a subtitle number treats that number as a line number in the file, which gives you a link to somewhere else.

although, running it on the first line of your subtitle text should mostly work, provided the text is unique...

sachac commented 2 years ago

Totally possible, especially if we use starting timestamps. That might be better than using the sub ID, which can change if an earlier subtitle gets split, and it also makes sense considering the idea of linking to timestamps in videos. It's already on my to-do list, so I'll bump it up and let you know! :)

On Thu., Jan. 13, 2022, 11:06 mooseyboots, @.***> wrote:

not sure if this is poss, and it's not super important.

at the moment, running org-store-link link on a subtitle number treats that number as a line number in the file, which gives you a link to somewhere else.

although, running it on the first line of your subtitle text should mostly work, provided the text is unique...

— Reply to this email directly, view it on GitHub https://github.com/sachac/subed/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACD7ESLN6VUTD3CIQLM6I3UV32CDANCNFSM5L4IJIJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

mooseyboots commented 2 years ago

sounds good. yeah i also wondered about how it would work with both sub ID numbers and also line-numbers of particular subs changing. seeing as sub ID isn't something an org link specifically knows about.

sachac commented 1 year ago

Sub IDs change, but maybe we can link to a timestamp instead, and then it can jump to whichever subtitle contains that timestamp, maybe preferring an exact match if there are overlapping ones?