Aegisub icon indicating copy to clipboard operation
Aegisub copied to clipboard

Feature request : "comment" hotkey

Open ilko-k opened this issue 4 years ago • 1 comments

Hi. The comment feature cannot be bound actually. Would it be possible ?

ilko-k avatar Apr 25 '20 12:04 ilko-k

here's an automation script

-- Toggle Comment
-- Nicked from HYDRA
script_name="Toggle Comment"
script_description="Comments/uncomments current lines"

function comment(subs,sel)
    for x,i in ipairs(sel) do
        line=subs[i]
        line.comment=not line.comment
	subs[i]=line
    end
    return sel
end

aegisub.register_macro(script_name, script_description, comment)

put it in your autoload directory and bind it to whatever

garret1317 avatar Jan 24 '21 15:01 garret1317