diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d55415d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,43 @@ +# Changelog + +## v0.2.8 — stability hotfixes + +Data-loss and crash fixes for v0.2.7 while the larger rework is in progress. + +### Data loss +- **Archiving no longer destroys the source.** Archiving `data.tar` as tar (or `report.zip` as zip) into the same + directory used to truncate the source; archiving a directory into a pane inside it made the archive include + itself. Both are now refused. Archives are written to a temporary file and renamed into place only on success, + so a failed or cancelled run leaves no partial file and keeps an existing archive intact; replacing an existing + archive asks first. +- **Deleting a remote symlink to a directory no longer wipes the target directory.** The link itself is removed. +- **SSH panes no longer act on local files.** Rename, Enter (edit / run / open / enter archive), archive and unpack + in an SSH pane used to operate on the *local* file with the same path (e.g. running a local + `/usr/local/bin/deploy.sh`). They are now refused with a message until remote support lands. +- **No more writes into an archive pane or the SSH host list.** Copy/move/unpack/archive into a pane showing an + archive used to put files into a temporary directory that is deleted when the archive is closed; with the + `ssh://` host list as target, files went to `./ssh:/…` in the process directory. Both are now refused. +- **Delete moves to the trash by default.** Permanent deletion is chosen explicitly with `D`/`d` in the dialog. + `behavior.confirm_delete = false` now works and skips the question only for the trash. + +### Crashes and races +- Caret mode (`i` in the info pane) no longer panics without colors (`NO_COLOR`, dumb terminals). +- Closing an SSH connection while it is in use (background transfer, mirrored pane, preview) no longer races or + panics. Mirrored panes and background jobs share a reference-counted connection: leaving a host in one pane no + longer disconnects the other pane or a running transfer. + +### Usability +- Status and error messages are shown in a line above the footer (they were never displayed before). +- Cyrillic (and other non-Latin) text can be typed in mkdir, rename, the filter and the SSH form; Russian-layout + keys still work as commands in the browser. +- `PgDn` works. +- `q` closes the info pane, the filter or the selection first, and quits only from the plain browser; `q` no longer + closes the SSH add-host form while typing. +- `n` cancels yes/no dialogs, as their hints say. +- Creating a directory that already exists reports an error instead of silent success. + +### Development +- In-process SSH/SFTP test server with a fault-injecting proxy (`internal/testutil/sshtest`), tree helpers + (`fstree`), a Bubble Tea test driver (`teadriver`) and behavioural smoke tests for the UI. +- CI: `make ci` runs gofmt, vet, a vendor consistency check, build and race-enabled tests; releases run the same + workflow. diff --git a/PKGBUILD b/PKGBUILD index 03c429e..b0113b2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ pkgname=vcom -pkgver=0.2.7 +pkgver=0.2.8 pkgrel=1 pkgdesc="Terminal file manager inspired by Midnight Commander" arch=("x86_64" "aarch64") diff --git a/README.md b/README.md index 859e961..6cd5686 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,13 @@ go build -o vcom ./cmd/vcom Run directly from the flake: ```bash -nix run github:vrubelroman/vcom?ref=v0.2.7 +nix run github:vrubelroman/vcom?ref=v0.2.8 ``` Install into user profile: ```bash -nix profile add github:vrubelroman/vcom?ref=v0.2.7 +nix profile add github:vrubelroman/vcom?ref=v0.2.8 ``` The Nix package wraps `vcom` with `ueberzugpp` in `PATH`, so image preview works in non-`kitty` terminals out of the box. @@ -60,8 +60,8 @@ The Nix package wraps `vcom` with `ueberzugpp` in `PATH`, so image preview works Download and install the latest release: ```bash -curl -sL https://github.com/vrubelroman/vcom/releases/download/v0.2.7/vcom_0.2.7_amd64.deb -o /tmp/vcom_0.2.7_amd64.deb -sudo apt install /tmp/vcom_0.2.7_amd64.deb +curl -sL https://github.com/vrubelroman/vcom/releases/download/v0.2.8/vcom_0.2.8_amd64.deb -o /tmp/vcom_0.2.8_amd64.deb +sudo apt install /tmp/vcom_0.2.8_amd64.deb ``` The Debian package recommends `ueberzugpp` for image preview outside `kitty` (optional). To install it: @@ -85,7 +85,7 @@ The Arch package depends on `ueberzugpp`, so non-`kitty` image preview is instal Download and install the latest RPM: ```bash -curl -sL https://github.com/vrubelroman/vcom/releases/download/v0.2.7/vcom-0.2.7-1.x86_64.rpm -o /tmp/vcom.rpm +curl -sL https://github.com/vrubelroman/vcom/releases/download/v0.2.8/vcom-0.2.8-1.x86_64.rpm -o /tmp/vcom.rpm sudo dnf install /tmp/vcom.rpm ``` @@ -216,7 +216,7 @@ Built-in themes (press `t` to open theme selector or set `ui.theme` in config): ## Releases -Pushing a tag like `v0.2.7` triggers GitHub Actions release workflow (`.github/workflows/release.yml`) which: +Pushing a tag like `v0.2.8` triggers GitHub Actions release workflow (`.github/workflows/release.yml`) which: - runs tests - vendors Go modules @@ -227,10 +227,10 @@ Pushing a tag like `v0.2.7` triggers GitHub Actions release workflow (`.github/w Release artifacts: -- `vcom-v0.2.7-x86_64-unknown-linux-gnu.tar.gz` -- `vcom_0.2.7_amd64.deb` -- `vcom-0.2.7-1.x86_64.rpm` -- `vcom-v0.2.7-checksums.txt` +- `vcom-v0.2.8-x86_64-unknown-linux-gnu.tar.gz` +- `vcom_0.2.8_amd64.deb` +- `vcom-0.2.8-1.x86_64.rpm` +- `vcom-v0.2.8-checksums.txt` ## Notes diff --git a/flake.nix b/flake.nix index 669311e..ccecd09 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ lib = pkgs.lib; packageBase = pkgs.buildGoModule { pname = "vcom"; - version = "0.2.6"; + version = "0.2.8"; src = ./.; vendorHash = null; diff --git a/internal/ui/model.go b/internal/ui/model.go index d21f15d..e828664 100644 --- a/internal/ui/model.go +++ b/internal/ui/model.go @@ -28,7 +28,7 @@ import ( "vcom/internal/theme" ) -const version = "v0.2.7" +const version = "v0.2.8" type modalKind int