Repository navigation
Xylem v0.6.0
Tables in the viewer
Spreadsheets (XLSX, ODS), CSV, JSON Lines, DBF with its memo files, SQLite and
Parquet open in V as a table, with a SQL filter (\ or &): write a
condition, as in a WHERE, and only the rows that meet it stay, each with its
number in the file. Tab lists the sheets of a spreadsheet or the tables and views
of a database, and typing part of a name narrows the list; [ and ] go to the
previous or next one, and T goes back to the text.
In a SQLite database, the same prompt takes a whole read-only query, starting with
SELECT or WITH: JOIN, GROUP BY, functions, all that SQLite does. Ctrl+B
writes all that the query gives. Xylem only reads: UPDATE, DELETE and the like
get a message pointing to another program, which O can open.
SQLite and Parquet are read by libraries written in C, so they open only with
V, never in Autoview. The hope is to replace them with Rust as soon as there
is a usable option.
Batch over records
Ctrl+B in the viewer writes a file from the records of a table or the lines
of a text, not only from tagged files:
- whole records as JSON, CSV, XML or HTML, or template files with a header, a
record and a footer; - conditions in a record (
%%if,%%else,%%end,%%stop if), and totals in
the footer (%{sum:column},%{min:...},%{max:...},%{avg:...}), with
exact decimals; - a destination ending in
.db,.sqliteor.sqlite3writes a SQLite table; - m or Insert marks records in a table, and the batch writes only those.
The demo folder has files to try it with.
Duplicates
Alt+Y looks for duplicates under the current branch, and D in the Usage
view does it for the folder listed. It finds equal files and whole equal folders,
on local disks and, without downloading anything, through the hashes rclone gives
for a cloud service.
Rendered Markdown
.md and .markdown files open rendered in the viewer, also in Autoview, inside
archives and compressed. T shows the source. Nothing is run or downloaded.
Large clouds
* on a folder mounted by rclone now asks for the whole branch at once: a
folder of 680 subfolders went from some 17 minutes to 16 seconds, and a whole
Drive of 240,262 files took 25 minutes. It shows a counter and Esc stops it.
When Google refuses too many requests, Xylem says so and asks whether to go on,
and the manual explains what helps.
Safer with what comes from others
- Looking at a repository runs nothing it names. Git can run commands that a
repository's own configuration names. Xylem no longer lets it, unless the folder
is one you trust (git_trusted, K on F12 page 1). A repository with its own
filters, as withgit-crypt, therefore shows no markers, Status, Diff or Blame
outside a trusted folder, with a message saying why; Log and Graph work. - Archives open in the background. Entering a compressed TAR no longer holds
the screen up: a file built to decompress to 200 GiB stays at 11 MiB of memory,
the footer shows the progress and Esc cancels. An archive with over a million
entries, or 256 MiB of paths, is refused with a message.
Smaller things
- & in the viewer shows only the lines that match, plain text or regular
expression. - An editor in Xylem's frame now says it is a separate program, with its own keys,
and how to leave the usual ones: inhexedit, Esc does not do it. - The built-in terminal and the frame no longer lose repeated characters, which
lefthexeditshowing0for the address00000000and too few dots. - * on any folder reads one folder per step, shows on screen which one, and
answers Esc between them. - The site, the READMEs and the manual in six languages caught up with all this,
and the roadmap now says what comes next, and in what order.
Install
Download the archive for your system below (Linux x86_64 or ARM64, static;
Windows x86_64), a .deb or .rpm package, or cargo install xylem-fm. The
website: https://andrelnfernandes.github.io/xylem/
What's Changed
- Viewer tables by @andrelnfernandes in #63
- Viewer: tables only from files on disk; [ and ] really switch sheets by @andrelnfernandes in #64
- Docs: the viewer's table mode, in the manual, READMEs and site by @andrelnfernandes in #65
- Viewer: tables read as streams of typed records, with the viewer's li… by @andrelnfernandes in #66
- Viewer: Batch (Ctrl+B) over the records of a table or the lines of a … by @andrelnfernandes in #67
- Batch: whole records as JSON, CSV, XML or HTML; warn when text was cut by @andrelnfernandes in #68
- Viewer batch templates by @andrelnfernandes in #69
- Git safe reads by @andrelnfernandes in #70
- Batch: refuse the open file's variables inside a SQL string by @andrelnfernandes in #71
- Viewer: Markdown files open rendered by @andrelnfernandes in #72
- Batch demo by @andrelnfernandes in #73
- Duplicates: find equal files and folders, locally and through rclone by @andrelnfernandes in #74
- Log: one read per step, and the folder being read on screen by @andrelnfernandes in #75
- Cloud mounts: * asks rclone for the whole branch at once by @andrelnfernandes in #76
- Markdown test: wait for the whole frame before reading the screen by @andrelnfernandes in #77
- Batch: conditions, totals, SQLite output and marked records by @andrelnfernandes in #78
- Plan: the order of the work and the rhythm of releases by @andrelnfernandes in #81
- Archives: open in the background, and Esc cancels by @andrelnfernandes in #79
- Docs: catch up with Duplicates, Batch and Markdown by @andrelnfernandes in #80
- Version 0.6.0 by @andrelnfernandes in #82
- Plan: Xylem as a programming cockpit, and ideas to evaluate by @andrelnfernandes in #83
Full Changelog: v0.5.0...v0.6.0