Repository navigation
LeanRows 0.8.0
LeanRows is a free Windows viewer for CSV, TSV, JSON Lines, log and Excel
files too large for Excel. It reads the file without loading it into memory and
never changes it. 0.8.0 opens files with other separators and Windows-1252
text, sorts Excel sheets, and can tell you when a newer version exists.
Separators
.csvfiles separated by semicolons, tabs or pipes open in columns. LeanRows
looks at the first 64 KiB: a first line such assep=;decides, and
otherwise the comma stays unless another separator splits the rows clearly
more consistently. The status bar names any separator that is not the comma.- More > Separator chooses comma, semicolon, tab or pipe for an open
.csvor
.tsvfile. Reload keeps the choice. The file is not changed. - A UTF-8 byte order mark no longer shows in the first cell or splits a quoted
first field.
Windows-1252 text
- Text files in Windows-1252 (Western European) show their accented letters,
euro signs and curly quotes. UTF-8 stays the default: a file is read as
Windows-1252 only when its first 64 KiB are not valid UTF-8 and hold no UTF-8
character of two or more bytes. The status bar then names the encoding. - More > Encoding chooses UTF-8 or Windows-1252 for an open text file. Copy,
Find and sorting use the decoded text.
Sorting Excel sheets
.xlsxsheets sort by a column like CSV files, in text or numeric order,
with Restore source order and Cancel sort. Dates and times sort in time order.- The sort reads the sheet once and keeps the shown text of its rows in
temporary files under%LOCALAPPDATA%\LeanRows\sort-cache, so a sorted sheet
scrolls without reading the workbook again. The files are deleted when the
sort ends, or the sheet is switched, reloaded or closed.
Version and update check
- Settings show which version of LeanRows is running.
- Settings > Updates > "Check for a new version once a day" is off by default.
When it is on, LeanRows asks GitHub at most once a day, after the first table
is shown, for the number of its latest release, and shows a line under the
toolbar if a newer one exists, with a button that opens its release page or,
for a winget, Scoop or Chocolatey install, the command that updates it. It
sends nothing about you or your files; GitHub sees the IP address the request
comes from. Nothing is downloaded. The Microsoft Store edition has no update
check. docs/update-check.md
describes it.
Measured
On GitHub Actions Windows runners, main before these changes against this
version: a 250 MB CSV is ready for input after 92 ms (92 ms before), with a
peak working set of 16.5 MiB (16.5 MiB before). The executable is 1,319,424
bytes (0.7.0: 1,164,800 bytes). On a laptop with other work running, sorting a
400,000-row sheet took from under 10 seconds to about 55 seconds.
Known gaps
- UTF-16 and other encodings are not read yet.
- Find in
.xlsxsheets is not available. - The sort key of a sheet is its shown text, at most 1 KiB per cell and 4 KiB
per row. - Find's status line says "raw UTF-8 bytes" also in a Windows-1252 file, where
it looks for Windows-1252 bytes. - The Chinese and Japanese text was translated and checked by back
translation, not reviewed by a native speaker.