feat(file-manager): move the shell while browsing the panel

Opening a directory in the panel now hands it to the shell, so walking the tree
reads like cd and the two stay on the same directory. The request is still read
at the shell's next prompt, and quitting without validating withdraws a request
the shell has not read yet, so Esc keeps leaving the shell where it was.
This commit is contained in:
BlackAngelTV committed 2026-11-11 08:48:03 +01:00
1 parent e7e4e849eb
commit 5d2e28b144
6 files changed
+88 -18

No files matched your search

+6
View File
@@ -91,3 +91,9 @@ func (s *shell_sync) publish_request(dir string) error {
}
return os.Rename(tmp, s.request_path())
}
// withdraw_request cancels a request the shell has not read yet. Removing a
// request it already consumed is not an error, the shell removes it itself.
func (s *shell_sync) withdraw_request() {
_ = os.Remove(s.request_path())
}