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

+3 -2
View File
@@ -55,8 +55,9 @@ opt(
option_type='to_bool',
long_text="""
Keep the shell's working directory and the panel in step. A :code:`cd` in the
shell moves the panel to the same directory, and validating a directory in the
panel makes the shell change to it at its next prompt.
shell moves the panel to the same directory, and walking through the panel moves
the shell to the directory being browsed at its next prompt. Quitting the panel
without validating a directory withdraws a request the shell has not read yet.
The exchange goes through two small files in the session directory kitty
exports as :envvar:`KITTY_CWD_SYNC_DIR`, so nothing is typed into the shell: