diff --git a/DependencyControl.json b/DependencyControl.json index c87e64c..a392fc1 100644 --- a/DependencyControl.json +++ b/DependencyControl.json @@ -212,20 +212,21 @@ "description": "Rightfully restore (or remove) honoraries easily by inserting autoswapper bits", "channels": { "stable": { - "version": "0.1.0", - "released": "2024-08-26", + "version": "0.2.0", + "released": "2024-09-01", "default": true, "files": [ { "name": ".moon", "url": "@{fileBaseUrl}@{fileName}", - "sha1": "373625e67f8d0d87ff606856afb5fa1ce646dd3b" + "sha1": "83e703f427f4736bb98e2c5222dcfe4c83e57f53" } ] } }, "changelog": { - "0.1.0": ["Add DependencyControl"] + "0.1.0": ["Add DependencyControl"], + "0.2.0": ["Make disabling honos smarter"] } }, "petzku.JumpToNextPlus": { diff --git a/macros/petzku.Honorary.moon b/macros/petzku.Honorary.moon index 7b90315..73232cc 100644 --- a/macros/petzku.Honorary.moon +++ b/macros/petzku.Honorary.moon @@ -4,7 +4,7 @@ export script_name = "Honorary" export script_description = "Rightfully restore (or remove) honoraries easily by inserting autoswapper bits" export script_author = "petzku" export script_namespace = "petzku.Honorary" -export script_version = "0.1.0" +export script_version = "0.2.0" _add_swap = (line, idx) -> @@ -20,8 +20,8 @@ _enable = (line) -> sel = line.text\sub ss, se-1 den = line.text\sub se line.text = "#{beg}{*}#{sel}{*}#{den}" - -- at second {*_} - aegisub.gui.set_cursor #beg + #sel + 5 + -- at second: mary{*}-tan{*_} + aegisub.gui.set_cursor #beg + #sel + 6 line _disable = (line) -> @@ -29,9 +29,9 @@ _disable = (line) -> beg = line.text\sub 1, ss-1 sel = line.text\sub ss, se-1 den = line.text\sub se - line.text = "#{beg}{**#{sel}}#{den}" - -- before swap: beg_{**sel} - aegisub.gui.set_cursor #beg + line.text = "#{beg}{*}{*#{sel}}#{den}" + -- at first: mary{*}_{*-tan} + aegisub.gui.set_cursor #beg + 4 line