Add A FAQ entry about opening new windows with the cwd

This commit is contained in:
Kovid Goyal 2020-11-25 17:47:20 +05:30
parent 3ed536ace1
commit c89d861c0e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -236,6 +236,18 @@ available. The manual way to figure it out is:
3. Use ``\x(hexval)`` in your ``send_text`` command in kitty. So in this example, ``\x13``
How do I open a new window or tab with the same working directory as the current window?
--------------------------------------------------------------------------------------------
In :file:`kitty.conf` add the following::
map f1 launch --cwd=current
map f2 launch --cwd=current --type=tab
Pressing :kbd:`F1` will open a new kitty window with the same working directory
as the current window. The :doc:`launch command <launch>` is very powerful,
explore :doc:`its documentation <launch>`.
I am using tmux and have a problem
--------------------------------------