LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xleak

Fast terminal Excel viewer with interactive TUI

TLDR

Open an Excel file in the interactive TUI
$ xleak [report.xlsx]
copy
Open a specific sheet by name
$ xleak [report.xlsx] --sheet "[Q3 Results]"
copy
Export a spreadsheet to CSV
$ xleak [data.xlsx] --export csv > [output.csv]
copy
Export a spreadsheet to JSON
$ xleak [data.xlsx] --export json > [output.json]
copy
List all tables in a workbook
$ xleak [workbook.xlsx] --list-tables
copy
View formulas by default
$ xleak [data.xlsx] --formulas
copy

SYNOPSIS

xleak [options] file

DESCRIPTION

xleak is a terminal-based Excel viewer that supports .xlsx, .xls, .xlsm, .xlsb, and .ods files. Features include full-text search across cells, formula display, lazy loading for large files, clipboard support, and export to CSV and JSON.

PARAMETERS

--sheet NAME|NUMBER

Open a specific sheet by name or index.
-n, --num-rows COUNT
Limit the number of rows displayed. `0` shows all rows.
-w, --width WIDTH
Set column width.
-H
Enable horizontal scrolling with auto-sized columns.
--formulas
Display cell formulas instead of computed values by default.
--export FORMAT
Export the spreadsheet to stdout in `csv`, `json`, or `text` (tab-separated) format.
--table NAME
Extract a specific named Excel table (.xlsx only).
--list-tables
List all tables in the workbook and exit.
--config PATH
Use a custom configuration file instead of the default at `~/.config/xleak/config.toml`.

KEYBOARD SHORTCUTS

Arrow keys

Move between cells.
/
Search across all cells.
n / N
Jump to next / previous search result.
Enter
View cell details and formula.
c
Copy cell value to clipboard.
C
Copy entire row to clipboard.
Tab / Shift+Tab
Switch between sheets.
Ctrl+G
Jump to a specific cell or row number.
t
Cycle through colour themes.
?
Display help.
q
Quit.

HISTORY

xleak was created by Brandon Greenwell (bgreenwell) and is written in Rust.

SEE ALSO

sc-im(1), csvlens(1)

Copied to clipboard
Kai