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

[Feature Request] Ripple editing, anchor editing #161

Open
skysphr opened this issue Oct 1, 2024 · 1 comment
Open

[Feature Request] Ripple editing, anchor editing #161

skysphr opened this issue Oct 1, 2024 · 1 comment

Comments

@skysphr
Copy link

skysphr commented Oct 1, 2024

Hello, these would really come in handy for subtitle sync:

  • Ripple editing, where moving one line moves all lines until the end of the subtitle.
  • Anchor editing, where one can set a number of anchors and stretch subtitle times by moving these anchors (SubtitleComposer implements this to some degree)
@skysphr
Copy link
Author

skysphr commented Oct 2, 2024

Workaround for ripple editing: add this script to the automation directory (on Linux that would be ~/.aegisub/automation/autoload - create the subdirectories if they do not already exist). It should have the extension .moon as it is Moonscript.

tr = aegisub.gettext

export script_name = tr"Select to end"
export script_description = tr"Select until end"
export script_author = "skysphr"
export script_version = "1"

select_to_end = (subs, selection, active) ->
    to_end = {}

    for i, line in ipairs subs
        if i >= active
            table.insert to_end, i

    to_end

aegisub.register_macro script_name, script_description, select_to_end

Then, assign a key binding to the script and use it instead of manually selecting all subtitles to the end, which is no fun.

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

No branches or pull requests

1 participant