Closed longsleep closed 2 months ago
I cannot replicate, steps I tried:
1) Start kitty as
kitty --config=NONE -o 'map f1 launch --cwd=current' kitten ssh --kitten cwd=/tmp localhost
2) change directory from /tmp to ~
3) press f1
4) New window is opened in ~, as expected
I cannot replicate, steps I tried:
- New window is opened in ~, as expected
@kovidgoyal Thanks for checking this out! Looking at your stes, I don't think this is the right test, because ~
is the default location and hence it is not possible to tell if it actually "works" the default behavior and the remote location are the same.
Instead, to reproduce simply skip your step 2. Then, new window must open in /tmp
of ssh localhost, but instead it opens in ~
of ssh localhost.
So please kindly reopen this.
When using kitten ssh with
--kitten cwd=folder
(for examplekitten ssh myserver --kitten cwd=folder
) the ssh session gets openend and the shell is correctly in the specified folder. When now using "launch" with its--cwd=current
parameter via a mapped key (for examplemap f1 launch --cwd=current
), the current directory is not passed over to the new window. This works fine whenkitten ssh
is not using thecwd=
parameter.Environment details
I couldn't find anything similar reported other than https://github.com/kovidgoyal/kitty/discussions/5892 which is not the same.