Skip to content

Commit

Permalink
[optionssheet] load all options (ignore max_help)
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Dec 23, 2023
1 parent 635ade1 commit 533d343
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions visidata/optionssheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ def beforeLoad(self):
def iterload(self):
for k in vd.options.keys():
v = vd.options._get(k)
if vd.options.disp_help <= v.max_help:
if v.sheettype in [None, BaseSheet]:
yield v
elif self.source != 'global' and v.sheettype in self.source.superclasses():
yield v
# if vd.options.disp_help > v.max_help:
# continue
if v.sheettype in [None, BaseSheet]:
yield v
elif self.source != 'global' and v.sheettype in self.source.superclasses():
yield v

def newRow(self):
vd.fail('adding rows to the options sheet is not supported.')
Expand Down

0 comments on commit 533d343

Please sign in to comment.