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:
6 files changed
+88
-18
No files matched your search
@@ -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())
|
||||
}
|
||||
Reference in new issue
Block a user