Skip to content

Commit

Permalink
[sidebar-] initialise current_sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Nov 1, 2023
1 parent f763802 commit 298abe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class SidebarSheet(TextSheet):
'''

BaseSheet.addCommand('b', 'sidebar-toggle', 'sheet.options.disp_sidebar = not sheet.options.disp_sidebar', 'toggle sidebar on/off')
BaseSheet.addCommand('gb', 'open-sidebar', 'vd.push(SidebarSheet(name, options.disp_sidebar_fmt, source=sheet.current_sidebar.splitlines()))', 'open sidebar in new sheet')
BaseSheet.addCommand('gb', 'open-sidebar', 'sheet.current_sidebar = "" if not hasattr(sheet, "current_sidebar") else sheet.current_sidebar; vd.push(SidebarSheet(name, options.disp_sidebar_fmt, source=sheet.current_sidebar.splitlines()))', 'open sidebar in new sheet')


vd.addMenuItems('''
Expand Down

0 comments on commit 298abe2

Please sign in to comment.