Repository navigation
Xylem v0.5.0
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,.zstand.bz2files 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_charsetfixes one instead of
guessing). - The size limit of what the viewer reads is configurable
(viewer_max_size;autois 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
- Add binary/hex editor integration and F12 options (edit_binary, binar… by @andrelnfernandes in #53
- Nerd fonts by @andrelnfernandes in #54
- Docs: screenshots of remote machines (SSH) by @andrelnfernandes in #55
- Manual: the comparison with ZTreeWin starts with a thank-you by @andrelnfernandes in #56
- Roadmap: what is done, what comes next and what is for later by @andrelnfernandes in #57
- Release: .deb and .rpm packages for Linux by @andrelnfernandes in #58
- Tree: - releases the branch from memory, as in ZTreeWin by @andrelnfernandes in #59
- Tree: Ctrl+S shows only the tagged files (ZTreeWin's Tags-Only Showall) by @andrelnfernandes in #60
- Git: Graph in the Git menu (git log --graph --decorate --oneline --all) by @andrelnfernandes in #61
- Version 0.5.0 by @andrelnfernandes in #62
Full Changelog: v0.4.0...v0.5.0