diff --git a/CHANGELOG.md b/CHANGELOG.md index 6530842..3be039c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,14 +50,20 @@ Data-loss and crash fixes for v0.2.7 while the larger rework is in progress. - `j`, `k` and other letters can be typed in the filter (they used to move the cursor); arrows still navigate. - `?` can be typed in the SSH add-host form (e.g. in passwords); `F1` opens the form's help. -### Known issues -- On a filesystem other than the one holding the home trash, delete still cannot use the trash - (`$topdir/.Trash-$uid` is not supported yet): vcom offers permanent deletion instead. -- `.trashinfo` files do not percent-encode `Path=` and `XDG_DATA_HOME` is ignored (the trash is always - `~/.local/share/Trash`), so other tools may not restore some items; a broken symlink already in the trash can be - replaced by a later item with the same name. +### Trash +- Follows the freedesktop trash spec: items on another filesystem go to that filesystem's `$topdir/.Trash-$uid` + instead of failing; `.trashinfo` `Path=` is percent-encoded (names with spaces/Cyrillic restore correctly in other + tools); `XDG_DATA_HOME` is honoured; name collisions (including broken symlinks already in the trash) never + overwrite an existing trashed item. -These are fixed by the new trash implementation of the rework. +### Config, session and logs +- Choosing a theme changes only the `theme = ...` line; comments and other keys in `vcom.toml` are preserved. +- A broken config no longer prevents startup: vcom starts with defaults and shows the error in the status line. +- `./vcom.toml` in the current directory is no longer picked up implicitly. +- Config and session are written atomically. The session moved to `$XDG_STATE_HOME/vcom/session.toml` (migrated + once from the old location) and is also saved on SIGTERM/SIGHUP. +- A single rotating log at `$XDG_STATE_HOME/vcom/vcom.log` replaces a new file in `/tmp/vcom-logs` per run; + secrets are never logged. ### Development - In-process SSH/SFTP test server with a fault-injecting proxy (`internal/testutil/sshtest`), tree helpers diff --git a/internal/fs/qa_archive_trash_test.go b/internal/fs/qa_archive_trash_test.go index 9420f64..3f45011 100644 --- a/internal/fs/qa_archive_trash_test.go +++ b/internal/fs/qa_archive_trash_test.go @@ -255,7 +255,6 @@ func TestQATrashNamesAndCollisions(t *testing.T) { // (RFC 2396). Unencoded spaces/Cyrillic/newlines break restore in other // tools (gio, trash-cli) — a newline in a file name corrupts the info file. func TestQATrashInfoPathEncoded(t *testing.T) { - t.Skip("BUG QA-5: .trashinfo Path= is written raw, not percent-encoded as the XDG trash spec requires (ops.go:323)") trash := qaTrashHome(t) work := filepath.Join(os.Getenv("HOME"), "work") p := filepath.Join(work, "my file\nx.txt") @@ -282,7 +281,6 @@ func TestQATrashInfoPathEncoded(t *testing.T) { // XDG_DATA_HOME must be honoured ($XDG_DATA_HOME/Trash), otherwise vcom and // the desktop use different trash cans. func TestQATrashHonoursXDGDataHome(t *testing.T) { - t.Skip("BUG QA-5: MoveToTrash ignores XDG_DATA_HOME and always uses ~/.local/share/Trash (ops.go:286)") home := t.TempDir() t.Setenv("HOME", home) xdg := filepath.Join(home, "xdgdata") @@ -329,7 +327,6 @@ func otherDevice(t *testing.T, home string) string { // uses $topdir/.Trash-$uid or a copy. Here MoveToTrash only does os.Rename // and fails with EXDEV. func TestQATrashCrossDevice(t *testing.T) { - t.Skip("BUG QA-1: MoveToTrash fails with EXDEV for files on another filesystem than $HOME; with trash now the default, F8+Enter cannot delete files in /tmp, /mnt, USB disks (ops.go:312)") home := qaTrashHome(t) _ = home dir := otherDevice(t, os.Getenv("HOME")) @@ -349,7 +346,6 @@ func TestQATrashCrossDevice(t *testing.T) { // A trashed broken symlink with the same name must not be silently replaced // by the next trashed item (collision check uses Stat, which follows links). func TestQATrashCollisionWithBrokenSymlink(t *testing.T) { - t.Skip("BUG QA-8: trash collision check uses os.Stat; a broken symlink already in Trash/files is overwritten by the next item with that name (ops.go:303)") trash := qaTrashHome(t) work := filepath.Join(os.Getenv("HOME"), "work") if err := os.MkdirAll(work, 0o755); err != nil {