diff --git a/data/plugins/scale.lua b/data/plugins/scale.lua index 11064235..5a1a69bd 100644 --- a/data/plugins/scale.lua +++ b/data/plugins/scale.lua @@ -58,6 +58,9 @@ local function set_scale(scale) core.redraw = true end +local function get_scale() + return current_scale +end local on_mouse_wheel = RootView.on_mouse_wheel @@ -98,3 +101,10 @@ keymap.add { ["ctrl+="] = "scale:increase", } +return { + ["set"] = set_scale, + ["get"] = get_scale, + ["increase"] = inc_scale, + ["decrease"] = dec_scale, + ["reset"] = res_scale +}