Have *_with_cwd work with the ssh kitten to open new windows auto-logged into the remote server at the current remote working directory

This commit is contained in:
Kovid Goyal
2022-03-15 19:59:16 +05:30
parent a216f6bd46
commit ce1e22ac95
6 changed files with 63 additions and 5 deletions

View File

@@ -27,6 +27,13 @@ rc files:
So you can now type just ``s hostname`` to connect.
If you define a mapping in :file:`kitty.conf` such as::
map f1 new_window_with_cwd
Then, pressing :kbd:`F1` will open a new window automatically logged
into the same server using the ssh kitten, at the same directory.
The ssh kitten can be configured using the :file:`~/.config/kitty/ssh.conf`
file where you can specify environment variables to set on the remote server
and files to copy from your local machine to the remote server. Let's see a

View File

@@ -68,7 +68,10 @@ no-title
setting functionality instead.
no-cwd
Turn off reporting
Turn off reporting the current working directory. This is used to allow
:ref:`action-new_window_with_cwd` and similar to open windows logged
into remote machines using the :doc:`ssh kitten <kitten/ssh>`
automatically with the same working directory as the current window.
no-prompt-mark
Turn off marking of prompts. This disables jumping to prompt, browsing