Skip to content

Xylem v0.5.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 19:39
· 265 commits to main since this release
9e8810d

Safe with hostile files

Files you download, archives you open, names a remote server sends and
repositories you clone are now all treated as hostile. Control characters and
bidirectional controls (Trojan Source) never reach the terminal: the viewer
shows them as marked dots, names with hidden bidi characters are marked, and
O asks before opening them. Decompression has limits on output, time and
memory; archives are extracted in the background and can be cancelled;
nothing is written outside the destination (no .., no absolute paths, no
symbolic links from archives, no setuid bits); temporary files are exclusive;
the ssh questions are stricter; and the dependencies are checked against the
RustSec database in CI, every week too. The README and the manual now have a
security statement: what Xylem promises, what it does, and how to make the
attack surface smaller still.

A better viewer

  • W wraps long lines, # shows line numbers, g (or :) jumps to
    a line (or a byte offset in hex).
  • .gz, .xz, .zst and .bz2 files are shown decompressed, with an
    honest notice when they are cut (viewer_decompress, F12 page 2).
  • Old text files in CP437, CP850 or Windows-1252, and UTF-16, are recognized;
    O goes through the encodings (legacy_charset fixes one instead of
    guessing).
  • The size limit of what the viewer reads is configurable
    (viewer_max_size; auto is the RAM / 32, between 16 and 256 MiB), and a
    memory budget keeps huge texts and very long lines from slowing it down.

The editor inside Xylem

E (and eXecute) now open the editor inside Xylem's frame
(editor_in_frame), and vi, vim and nvim take the colors of Xylem's theme
(editor_theme). Binary files can go to a hex editor of your choice
(edit_binary, binary_editor; without one, the first of hexedit, heh,
bvi or dhex on the PATH).

Help in six languages

The manual inside Xylem (F1) is now in English, Portuguese, Spanish, French,
German and Chinese; L in the help switches the language.
docs/manual/TRANSLATING.md explains how to add another.

Closer to ZTreeWin

  • - in the tree releases the branch, as in ZTreeWin: its files leave
    memory, and their tags go too (the message says how many); ← still only
    collapses.
  • Ctrl+S in the tree is ZTreeWin's Ctrl-Showall: a Showall of the tagged
    files only (the title says "Showall (tagged)").
  • The manual has a page comparing Xylem with ZTreeWin, which starts with a
    thank-you.

Git: Graph

Ctrl+G → G shows git log --graph --decorate --oneline --all of the whole
repository in the viewer, with git's own colors (one per branch, and local
branches, remote branches, tags and HEAD apart), adjusted to stay readable on
the theme. Only the text colors are read from git's output; any other escape
sequence is dropped.

Icons (Nerd Fonts)

icons = "nerd-fonts" (M on F12 page 2) shows icons for files, folders
and Git states. Any monospaced font works, in its Nerd Font edition.

.deb and .rpm packages

The release now has packages for Debian, Ubuntu and their derivatives
(.deb) and for Fedora, RHEL, openSUSE and theirs (.rpm), x86_64 and
ARM64, with the menu entry, the icons and the man page.

Smaller things

  • A roadmap in the README: what is done, what comes next and what is for
    later.
  • Screenshots of remote machines (SSH) in the manual and on the website.
  • The crates.io homepage is the website.

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.4.0...v0.5.0