From c89d861c0e1b7d51a7523aa57333aa2451361fa5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Nov 2020 17:47:20 +0530 Subject: [PATCH] Add A FAQ entry about opening new windows with the cwd --- docs/faq.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/faq.rst b/docs/faq.rst index d2109e224..6b0fca208 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -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 ` is very powerful, +explore :doc:`its documentation `. + I am using tmux and have a problem --------------------------------------