diff options
author | garret <garret@airmail.cc> | 2022-06-17 22:45:44 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2022-06-17 22:52:44 +0100 |
commit | d636f1b008fa1dfc665b9eff2764002202631e13 (patch) | |
tree | 1857ae6327895f8f731df06f7cc1239f179f42a4 /macros/garret.restyler.lua | |
parent | a86e96d96b1c018a91a8d656e9e85e8f2507c120 (diff) | |
download | aegisub-scripts-d636f1b008fa1dfc665b9eff2764002202631e13.tar.gz aegisub-scripts-d636f1b008fa1dfc665b9eff2764002202631e13.tar.bz2 aegisub-scripts-d636f1b008fa1dfc665b9eff2764002202631e13.zip |
nuke old and bad config stuff
This reverts commit 52f3a086f2ad7a3bbc9b8f8225a99e9e99120613.
It also manually bandages over the places where it was ripped out.
it was never a good idea in the first place
Diffstat (limited to 'macros/garret.restyler.lua')
-rw-r--r-- | macros/garret.restyler.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/macros/garret.restyler.lua b/macros/garret.restyler.lua index 1c5dc9f..043ee1e 100644 --- a/macros/garret.restyler.lua +++ b/macros/garret.restyler.lua @@ -5,22 +5,19 @@ script_version = "2.1.0" script_namespace = "garret.restyler" local haveDepCtrl, DependencyControl, depctrl = pcall(require, "l0.DependencyControl") -local simpleconf +local karaskel, cleantags if haveDepCtrl then depctrl = DependencyControl { --feed="TODO", - {"karaskel", "cleantags", {"garret.simpleconf", url="https://github.com/garret1317/aegisub-scripts"}, } + {"karaskel", "cleantags"} } - kara, clean, simpleconf = depctrl:requireModules() - config_dir = depctrl.configDir + kara, clean = depctrl:requireModules() else include("karaskel.lua") include("cleantags.lua") - simpleconf = require 'garret.simpleconf' - config_dir = "?user/config" end -local config = simpleconf.get_config(aegisub.decode_path(config_dir.."/"..script_namespace..".conf"), {new_style = "Default"}) +-- local config = simpleconf.get_config(aegisub.decode_path(config_dir.."/"..script_namespace..".conf"), {new_style = "Default"}) -- TODO: detect pre-existing inline tags -- probably need some kind of ass parsing, or a hack with match() @@ -52,7 +49,7 @@ end function main(sub, sel) local _, styles = karaskel.collect_head(sub, false) - --local config.new_style = "Default" -- the one we'll be changing stuff to - TODO: configurable + local config.new_style = "Default" local new_style = styles[config.new_style] for h, i in ipairs(sel) do -- TODO: automatically exclude styles (also configurable) |