Skip to content

Xylem v0.6.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 20:22
· 207 commits to main since this release
4e0d4a4

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, .sqlite or .sqlite3 writes 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 with git-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: in hexedit, Esc does not do it.
  • The built-in terminal and the frame no longer lose repeated characters, which
    left hexedit showing 0 for the address 00000000 and 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

Full Changelog: v0.5.0...v0.6.0