Skip to content

Commit

Permalink
[macro-] only record commands that are replayable
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed Dec 26, 2024
1 parent 7e1ecbd commit 42a4773
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions visidata/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42a4773

Please sign in to comment.