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 authored and anjakefala committed Jan 4, 2025
1 parent 3fc7372 commit 6279862
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 6279862

Please # to comment.