From 5afe1275bc975e24d0870a50bd3d57c073957d01 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 2 Oct 2024 10:45:41 +0200 Subject: [PATCH] implemented #12: added toggle commands like togglebatch --- command.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/command.go b/command.go index 1daed2d..16765dc 100644 --- a/command.go +++ b/command.go @@ -214,6 +214,10 @@ func (c *Calc) SetCommands() { c.SettingsCommands["b"] = c.SettingsCommands["batch"] c.SettingsCommands["s"] = c.SettingsCommands["showstack"] + c.SettingsCommands["togglebatch"] = c.SettingsCommands["batch"] + c.SettingsCommands["toggledebug"] = c.SettingsCommands["debug"] + c.SettingsCommands["toggleshowstack"] = c.SettingsCommands["showstack"] + c.ShowCommands["h"] = c.ShowCommands["history"] c.ShowCommands["p"] = c.ShowCommands["dump"] c.ShowCommands["v"] = c.ShowCommands["vars"]