Skip to content

Commit

Permalink
[main-] load macros for batch mode
Browse files Browse the repository at this point in the history
Macros are loaded by run(), which is not called when --batch is given.
  • Loading branch information
midichef committed Jul 1, 2024
1 parent 002cd84 commit 2d9d052
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions visidata/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ def main_vd():

if not args.play:
if args.batch:
vd.reloadMacros()
if sources:
vd.push(sources[0])

Expand All @@ -351,6 +352,7 @@ def main_vd():
if args.batch:
if not args.debug:
vd.outputProgressThread = visidata.VisiData.execAsync(vd, vd.outputProgressEvery, vs, seconds=0.5, sheet=BaseSheet()) #1182
vd.reloadMacros()
if vd.replay_sync(vs): # error
return 1

Expand Down

0 comments on commit 2d9d052

Please sign in to comment.