[aegisub] update keybindings

This commit is contained in:
odrling 2020-10-05 05:47:34 +02:00
parent 4c481ffc38
commit 1a3506b88b
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,24 @@
local tr = aegisub.gettext
script_name = tr"frz endro"
script_description = tr"probably won't be useful anytime soon"
script_author = "amoethyst"
script_version = "1.0"
function frz_combo(subs, sel)
local expr = "frz([0-9.-]+)"
for _, i in ipairs(sel) do
line = subs[i]
aegisub.log(line.text)
frz_text = line.text:match(expr)
aegisub.log(frz_text)
frz = tonumber(frz_text) * -1
line.text = line.text .. "{\\frz"..frz.."}"
subs[i] = line
end
end
aegisub.register_macro(script_name, script_description, frz_combo)

View file

@ -147,6 +147,9 @@
"automation/lua/ua.ChangeCase/Change Case" : [
"Ctrl-Shift-C"
],
"automation/lua/ua.Cycles/Cycles/Blur Cycle" : [
"Ctrl-B"
],
"automation/lua/ua.HYDRA/HYDRA" : [
"Ctrl-Shift-H"
],
@ -325,12 +328,21 @@
]
},
"Subtitle Grid" : {
"automation/lua/lyger.GradientByChar/Gradient by character/Apply Gradient" : [
"Ctrl-Shift-G"
],
"edit/line/join/concatenate" : [
"Ctrl-Alt-J"
],
"subtitle/select/all" : [
"Ctrl-A"
],
"time/snap/end_video" : [
"Ctrl-Shift-Right"
],
"time/snap/start_video" : [
"Ctrl-Shift-Left"
],
"video/frame/next" : [
"Right"
],