Skip to content

Commit

Permalink
[status-] carry longname across sheet changes
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed Mar 23, 2024
1 parent 7eeb719 commit a91038c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions visidata/sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,8 @@ def push(vd, vs, pane=0, load=True):

if load:
vs.ensureLoaded()
if vd.activeCommand:
vs.longname = vd.activeCommand.longname


@VisiData.api
Expand All @@ -1042,6 +1044,8 @@ def quit(vd, *sheets):
vs.confirmQuit('quit')
vs.pane = 0
vd.remove(vs)
if vd.activeCommand:
vd.activeSheet.longname = vd.activeCommand.longname


@BaseSheet.api
Expand Down

0 comments on commit a91038c

Please sign in to comment.