From 42a4773d75eef16f4d171a0225a7a13b3814eeca Mon Sep 17 00:00:00 2001 From: midichef <67946319+midichef@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:35:52 -0800 Subject: [PATCH] [macro-] only record commands that are replayable --- visidata/macros.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/visidata/macros.py b/visidata/macros.py index bb87402d2..ff629fe5d 100644 --- a/visidata/macros.py +++ b/visidata/macros.py @@ -107,9 +107,10 @@ def afterExecSheet(cmdlog, sheet, escaped, err): if not vd.activeCommand: return if vd.activeCommand.longname == 'macro-record': return - cmd = copy(vd.activeCommand) - cmd.sheet = '' - vd.macroMode.addRow(cmd) + if vd.activeCommand.replayable: + cmd = copy(vd.activeCommand) + cmd.sheet = '' + vd.macroMode.addRow(cmd) @CommandLogJsonl.api