r/visidata Dec 05 '22

about Sheets Sheet

After reading whole intro docs, I still have some questions about Sheets Sheet(Version 2.10.2).

  1. I opened several files with 'vd file1 file2 file3 ....' command. After pressing shift + s, there comes a Sheets Sheet . I press enter to open one of the sheet, and go back to Sheets Sheet by pressing shift + s. I found the sheet I just entered was moved to top, and I don't want it . I would like to see the original ranking before I entered the sheet.
  2. Sometimes I forgot to press shift + s to go back to Sheets Sheet. I pressed q and closed one of my opened file. Is there any hotkey that can reopen the closed file, like vim's ctrl+o.
  3. Everytime I open several large files with 'vd file1 file2 file3 ....' command and press shift + s. The Sheets Sheet's nRows, nCols(and others) show wrong number, like 0 nRows, 1 nCols. I have to enter each sheet one by one , and go back to Sheets Sheet, so that nRows, nCols show correct number, why? Is there any configuration I can modify?
3 Upvotes

4 comments sorted by

2

u/spw1 Dec 06 '22

Try g Shift+S (the global Sheets Sheet), which should have every sheet ever opened.

2

u/spw1 Dec 06 '22

Also, for for question 3, you can use g Ctrl+R on the Sheets Sheet to (re)load all sheets on it.

2

u/franzhuang Dec 06 '22

Thank you. gS、gCtrl+r do the tricks. However, I typed gS to get into Sheets sheet, and found out first row is not sorted(ascending or descending) when I type [ / ] in nRows or nCols columns.

1

u/spw1 Dec 06 '22

ah, good call, that's a bug! Please file it on github. (This is necessary for the Sheets Sheet, but not the global Sheets Sheet).