Repository navigation
Releases
v0.4.0
Minor Changes
-
Bind
Ntonew_file,Ytocopy_name, andShift+Ytocopy_pathin the file list by default. -
Popups now act on a key only when Ctrl, Shift, and Alt are all up, as the file list does. Held with a modifier, Enter, Esc, Space, Tab, the arrows, and the letter or digit of a row do nothing, and Esc does not cancel a file operation or a move; in an input field the arrows are left to the field. Shift+Tab still moves between the fields of a popup.
-
Enter on a checkbox in the sort popup now applies the sort settings as they are and closes the popup instead of flipping the checkbox. In the conflict popup, Enter on "Apply to all" no longer flips it; use Space or its key.
-
Popups are wider, and their messages and notes wrap instead of being cut off. While a popup with a list is open, the status bar shows the full text of the selected row.
-
The file list is narrower by default: the size column holds 9 digits and writes larger sizes like
1.2G, the extension column holds 4 characters, and the gap between columns follows the font size. New[filelist]settingssize_digits,extension_chars, andmin_name_charsset the widths of the size, extension, and name columns. -
In the bookmarks popup, the status bar shows the path of the selected bookmark after its name; in the command palette, it shows the command line of the selected external command. Both appear as written in the configuration.
-
Bind
`toclear_marksin the file list and the image preview by default. -
Add the
mark_comparecommand (W), which marks the files in the active pane that are missing from the other pane, or also the newer or different ones. The newfilelist.compare_tolerance_msoption sets how far apart two modification times may be and still count as the same. -
Filter and glob-mark patterns can exclude names with
~, as in*~*.bak. A literal~is now written\~or[~],\is an escape on Windows too, and spaces around a pattern are no longer trimmed. -
New
[filelist]settingstime_shows_full_yearandtime_shows_secondsnarrow the file list's time column: whenfalse, the year is written with its last two digits and the seconds are left out. The status bar still shows the full time. -
The number of places each pane keeps in its history and the number of lines the log keeps can now be set with
max_historyunder[filelist]andmax_linesunder the new[log]table. -
Sizes outside the file list's size column are now always written exactly, with thousands separators, as in
1,234 bytes;size_formatapplies only to that column.calculate_sizeandcalculate_size_on_diskalso log an approximation and list directories first, as inSize of docs: 48,318,382,080 bytes (45GB) in 3 directories and 12 files, and counts of one now read1 item,1 byte, and1 match. -
Add the
findcommand (Shift+F), which searches below the pane's directory for entries matching a glob and goes to the one picked from the list. A glob without a slash matches names at any depth; one with a slash matches the path from the directory searched. -
wafu is now available from Homebrew on macOS and Linux (
brew install iorate/tap/wafu) and from Scoop on Windows, where it installs without Gatekeeper or SmartScreen blocking it. Linux gets a prebuilt binary for the first time, the macOS disk image is replaced by a.tar.gzthat Homebrew installs, and every archive now includes the licenses of the bundled dependencies. -
Add the
browsecommand (T), which opens the directory dialog of the OS and moves the active pane to the directory picked in it. -
Long lines in the log now wrap instead of being cut off at the right edge. The log scrolls one entry at a time, and its scrollbar counts entries, however many lines each wraps to.
-
The number of matches
findcollects before it stops can now be set withmax_find_resultsunder[filelist]. -
Add
max_bytesto[preview.text]and[preview.image]to set how many bytes of a file the text preview reads and how large an image the image preview opens. The note after a cut file and the error for an image that is too large state the limit in bytes. -
Building wafu from source, such as with
cargo install, now requires Rust 1.95 or later. -
PageUp and PageDown now move the cursor by a page in every popup list, and Home and End jump to the first and last row in the lists without a filter field.
-
Add
rename_replace(Shift+R) andrename_template(Alt+R), which rename the marked items, or the item under the cursor, by replacing text in their names or from a template such asphoto_{001}{ext}, showing the new names before Enter. In that popup, Alt with Up, Down, PageUp, PageDown, Home, or End scrolls the list. -
Add a scrollbar to the text viewer, which shows the position in the document and scrolls it by dragging. Lines in the viewer wrap slightly earlier to leave room for it.
-
Add the
log_topandlog_bottomcommands (Shift+HomeandShift+End), which jump to the oldest and the newest lines of the log.
Patch Changes
-
rename, and renaming in a copy or move conflict, now refuse a name that is.or..or contains a path separator, instead of moving the item to another directory. -
Treat names that differ only in Unicode normalization (NFC and NFD) as the same name: the cursor lands on an entry reached by a typed path,
renamedoes nothing when the name is retyped, and a case-only rename of a decomposed name works. -
The offset column of the binary preview is six digits wide instead of eight, and widens only when the preview shows more than 16 MiB.
-
Fix the cursor of a long popup list sometimes showing in the middle of the list, not at its bottom edge, right after the popup opens.
-
Keep at least eight characters of a file name visible in a narrow pane; the other columns are cut off at the pane's edge instead.
-
The text viewer no longer scrolls past the end of the file, and the End key and paging now account for wrapped lines: End shows the last line in full, and paging neither skips nor repeats lines.
-
Renaming an item to a name that differs only in case no longer replaces another item of that name. On a case-sensitive file system, renaming a symbolic link onto its target lost the target, and renaming a hard link onto another reported success without doing anything; both now fail with "already exists".
v0.3.0
Minor Changes
-
Log messages now start with a capital letter and follow one format. An operation names the item it was run on, or counts the selected items rather than the files inside them, as in "Copied docs".
-
Shift+I (calculate_size) logs the number of files and directories and the total size of the marked items, or of the item under the cursor, counting what is inside directories. Symbolic links are not followed and count as nothing.
-
I (calculate_size_on_disk) logs the space the marked items, or the item under the cursor, take up on disk, counting what is inside directories. On macOS and Linux, the space of a file with several hard links is counted once.
-
The image viewer shows the "Loading" popup while an image takes more than a moment to load, as the text viewer does. Moving to another image before it appears starts the wait over, so that it stays out of the way while you move through images quickly.
-
Regular files can be colored by extension with the new
[colors.light.extensions]and[colors.dark.extensions]tables, as inzip = "#a02020". Directories, executables, links, and other kinds keep their own color. -
history(H) now narrows its list as you type, like the command palette: to the paths that contain the text, ignoring case. The 0-9 and A-Z keys no longer pick a place in the history at once. -
The previews no longer show the encoding, the image format, and whether the image is marked in a corner of the window. Instead, the preview of a marked image has the background color of marked rows.
-
Add the
open_alternativecommand (Shift+Enterin the file list), which opens the item under the cursor in the program set for directories or for its extension in[open_alternative], and does whatopendoes when none is set. -
The configuration file created on first launch now contains only a link to the new configuration reference, docs/configuration.md. Existing configuration files are not changed.
-
search(F) now finds the text anywhere in a name, not only at its start. Setsearch_matches_anywhere = falsein[filelist]to match only the start as before. -
An empty string in the configuration now means the item is not set, so a configuration file can take back what a file it extends set, such as
pdf = ""for anopen_alternativerule. In a key table,""restores the built-in binding. -
A configuration file can name other files as its base with
extends, so that settings shared between machines live in one file and each machine keeps only its differences. The per-OS[os.*]sections are removed in its favor. -
The filter now stays when the pane moves to another directory or archive, until it is cleared or replaced. It is not saved when wafu exits.
-
Add
[preview.image]withfrom_leftandfrom_right, which choose whether an image opened from each pane is previewed in place of the other pane ("other_pane") or of both panes ("both_panes").hide_log_in_previewis replaced byhide_login[preview.text]and in[preview.image]. -
Bookmarks take their key from a new
keyitem in[[bookmarks]]: one digit or letter, such askey = "D". The bookmarks popup no longer gives 0-9 and A-Z to the bookmarks in order, so a bookmark withoutkeyis picked with the arrow keys and Enter. -
Archives inside archives can now be entered and browsed like any other archive, and extract works on archives inside an archive, unpacking them into the other pane.
-
The configuration tables are reorganized:
[general]is split into[filelist](wheremkdir_then_enteris nowmkdir_enters_dir) and[programs](editor,use_login_shell_env),[appearance.font]is now[font],thememoves to[colors]andsize_formatto[filelist], andcursor-inactiveis nowcursor_inactive. Items under the old names are reported as unknown and ignored. -
The text preview's encoding can now be chosen from a searchable list with C (preview_encoding), or set back to auto-detection. The choice lasts until the preview is closed.
-
In the directory history list, Tab switches between the histories of the left and right panes. A place picked from the other pane's history opens in the active pane.
-
The color of line numbers in the text preview can be set with
line_numberin[colors.light]and[colors.dark], and how faint hidden items look withhidden_opacityin[colors]. Line numbers no longer followfgandbg: nothing changes with the default colors, but if you changed those, setline_numberto match.
v0.2.0
Minor Changes
-
Keys during a preview come from their own tables. The text preview's movement keys are now commands (preview_scroll_up, preview_page_down, preview_top, preview_toggle_mode, and so on), Enter and Esc close a preview through close_preview, and the log keys (Alt+Up/Down, Shift+Up/Down) work there too. The palette (F1) opens during a preview and lists the commands available in it, and Alt+Z opens a new window there as well. [keys.image] and [keys.text] each have full default bindings and no longer inherit changes made under [keys.filelist]. [keys.text] covers the binary mode as well, and the [keys.binary] section is gone.
-
E during a text preview (preview_edit) closes the preview and opens the shown file in the editor. Inside an archive, the entry is extracted to a temporary directory first, as edit does. Marks are not consulted: only the file being shown is opened.
-
The cursor line takes a new color,
cursor-inactive, while the window is not focused, so that it shows whether keys reach wafu. The default is a grey between the cursor and the mark background. -
Hidden files, when shown, are drawn dimmed in the file list.
-
An argument in braces that is not a known placeholder, such as {}, in editor or a [commands] entry is now passed as written instead of being reported as an error.
-
Commands pick their targets by one rule: open, open_with_os, enter_as_archive, edit, and rename act on the cursor row whatever is marked, while copy, move, delete, trash, extract, compress, copy_path, copy_name, shell_menu, and the {paths} of external commands act on the marks or, without marks, on the cursor row; a right click follows the same rule instead of singling out an unmarked row. The .. row now stands for the directory itself (or the archive file at an archive root) for every command, so copy_path, compress, rename, and the rest work on it as open_with_os already did, and renaming it moves the pane to the new name.
-
On Windows, .com, .bat, and .cmd files are now drawn in the
execcolor with a*mark, like .exe files. -
The binary preview now shows the offset of each row dimmed in its own column, as the text preview shows line numbers, and no longer wraps the text column in
|. -
V (open_as_text) opens the file under the cursor in the text preview whatever its type, so that images and archives can be looked into as well; on the .. row at an archive root, it opens the archive file itself. Content that is not text is shown in the binary mode, as for any other file.
-
During a preview,
clear_log,copy_log,quit,quit_without_saving, andedit_configcan now be bound to keys and run from the palette, and the log scrolls with the mouse wheel and its scrollbar. The image preview also acceptssearchandjump_*, with the same default keys as the file list (F, and Ctrl with a letter or digit). -
The divider between the panes and the one above the log can be dragged with the mouse. The panes move in the same 5% steps as the keys, and the log by whole rows. The layout keys (Alt+arrows by default) also work during an image preview.
-
A file is now hidden when its name starts with a dot or it carries the hidden attribute of the OS, on every OS. On Windows this hides dot files such as .gitignore as well, and on macOS it hides what Finder hides by a flag, such as ~/Library.
-
Setting
use_login_shell_env = falsein[general]turns off reading the login shell's environment; the setting takes effect the next time wafu starts. -
New run_file (X) and run_command (Shift+X) commands open a dialog for a command line to run without a shell, starting from the cursor item's path or empty. The line accepts the same placeholders as [commands], such as {marked_paths}. Enter on an executable file now opens this dialog instead of the text preview, and on Windows a file inside an archive counts as executable by its extension, as on disk.
-
On macOS and Linux, programs started by external commands and the editor now get the environment of your login shell (such as
PATH) when wafu is not started from a terminal. Shell startup files can checkWAFU_RESOLVING_ENVIRONMENTto skip lines that should not run while wafu reads it. -
When an entry cannot be extracted (an unsafe or invalid name, a link that cannot be made, an unsupported entry), extraction and copies out of an archive now log the entry, skip it, and go on; the summary line shows how many entries were skipped. Before, the whole operation stopped at the first such entry. Edit and open from inside an archive do not start the program when an entry was skipped.
-
On Windows, Alt+Shift+Z (new_window_as_admin) opens another window as administrator through the UAC prompt; a refusal is logged. A window running as administrator says so in its title.
-
Archives in tar, tar.gz (tgz), tar.bz2 (tbz2), and tar.xz (txz) can be browsed, previewed, extracted, and made with compress, alongside zip. The format of a new archive follows the extension typed in the compress popup; only zip takes a password, and a password typed for a tar archive is refused with an error, as is a name whose extension does not name one of these formats. enter_as_archive and extract detect the format from the file's contents when the extension does not identify it.
-
Command lines in the configuration (editor and [commands]) are now split by the OS's own quoting rules, so some existing lines may need rewriting. On macOS and Linux, backslashes, single quotes and a leading # work as in sh; on Windows, a backslash before a double quote escapes it (write "C:\dir\" for a path ending in a backslash), and a line starting with a space has no program and is rejected.
Patch Changes
-
On Windows, leaving a folder that had just changed could rarely freeze the window or leave a pane loading forever. Updated the file watching library to a version that fixes this.
-
Files extracted from a zip that records no Unix permissions for them, such as one made on Windows or DOS, now get the system's default permissions instead of ones made up from their DOS attributes or none at all.
-
The text preview no longer breaks a line at a vertical tab, form feed, next line, line separator, or paragraph separator without numbering the extra rows, which could leave text out of reach. Those characters are now shown as ↵, and line numbers stay as editors count them.
-
The text preview now leaves one character of space between the line numbers and the text.
-
A [commands] entry run inside an archive no longer extracts the cursor and marked items first when its line uses none of {cursor_path}, {marked_paths}, and {paths}.
-
A zip entry in a compression method wafu cannot read, such as LZMA, is now skipped and logged while the rest of the archive is extracted, instead of stopping the extraction.
-
Extracting a zip whose entries start with
./, as one made from.does, no longer fails on its root entry; when a zip holds the same file under two spellings, such asa.txtand./a.txt, only the later one is listed and extracted. -
Zip entries now show the NTFS modification time that 7-Zip and Windows tools write, to a fraction of a second, and an extended timestamp before 1970 no longer shows as a date in 2106.
-
Line numbers in the text preview are drawn slightly darker, at the same strength as other dimmed text.
-
Zip archives that wafu creates now record each modification time to the second in UTC, so odd seconds, times before 1980, and, for wafu and other tools that read extended timestamps, opening the archive in another time zone no longer shift the times.
-
Text fields in popups now scroll horizontally to keep the caret in view when the text is longer than the field.
-
Cancelling a popup with Esc no longer leaves the keyboard dead. This happened on the first password prompt of a session and left only the mouse working until a restart.
-
File names containing line-break characters, such as a carriage return, no longer break the row they are shown in; those characters are now shown as ↵.
-
On Windows,
theme = "auto"now follows a switch between light and dark mode made by PowerToys Light Switch and other tools that announce the change only once. The setting is read from the registry instead of the notification the window receives. -
A double click on the left pane while an image is previewed in the right pane now closes the preview, as a double click on the image already does. The cursor moves to the clicked row first.
-
Zip entries marked as directories only by their attributes, without a trailing slash in the name, are now listed and extracted as directories instead of empty files.
-
Opening a file that is not a zip now says "not a zip archive" (or "not an archive" when the name gives no format), a broken zip says "the zip archive is damaged", and the entry is named when the damage is in one, instead of the zip library's own message; for an encrypted entry, the message also says the password may be wrong.
v0.1.0
- Initial release.