Skip to content

Commit

Permalink
[index-] add longnames for g< and g>
Browse files Browse the repository at this point in the history
Closes #2011
  • Loading branch information
anjakefala committed Aug 30, 2023
1 parent 9ec71f3 commit 3abfcb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visidata/indexsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def nextRow(sheet, n=1):
vd.addCommand('S', 'sheets-stack', 'vd.push(vd.sheetsSheet)', 'open Sheets Stack: join or jump between the active sheets on the current stack')
vd.addCommand('gS', 'sheets-all', 'vd.push(vd.allSheetsSheet)', 'open Sheets Sheet: join or jump between all sheets from current session')

BaseSheet.addCommand('g>', '', 'vd.replace(openSource(source.nextRow()))', '')
BaseSheet.addCommand('g<', '', 'vd.replace(openSource(source.nextRow(-1)))', '')
BaseSheet.addCommand('g>', 'open-source-next', 'vd.replace(openSource(source.nextRow())) if isinstance(source, IndexSheet) else fail("parent sheet must be Index Sheet")', '')
BaseSheet.addCommand('g<', 'open-source-prev', 'vd.replace(openSource(source.nextRow(-1))) if isinstance(source, IndexSheet) else fail("parent sheet must be Index Sheet")', '')

IndexSheet.addCommand('g^R', 'reload-selected', 'reloadSheets(selectedRows or rows)', 'reload all selected sheets')

Expand Down

0 comments on commit 3abfcb1

Please sign in to comment.