Re: [dev] [st] How do I add a keybinding to open a new ST window in the current working directory?

From: Enan Ajmain <>
Date: Thu, 9 May 2019 11:30:37 +0600


I looked at the patch you suggested, but I still don't have any idea
how I should go about getting what I want. I mean I understood the
code, but I lack any knowledge on actually coding on top of existing
projects. If you didn't understand what I actually wanted, I will
reiterate more clearly. I want to press `Ctrl-N` to open a new ST
terminal on the cwd. I am using dwm and someone else suggested I use
dwm to handle that but I don't want to do that, mainly because I
change window managers quite often, but also because I think a
terminal emulator should have the feature I am talking about. Or at
least should be easy to add. Someone else suggested `st &` and while
it does make sense but it's not what I want, I want a keybinding.

So, could you help me how I can create a function to open a new ST
terminal window on the cwd of the current ST terminal?

On Tue, Apr 23, 2019 at 7:20 PM Alexander Krotov <> wrote:
> On 23/04/2019 13:54, Enan Ajmain wrote:
> > Hi,
> >
> > I want to add a keybinding to ST to spawn a new ST window in the
> > current working directory. How do I do that?
> >
> > Thanks,
> > Enan
> >
> See
> for an example of how to get cwd
Received on Thu May 09 2019 - 07:30:37 CEST

This archive was generated by hypermail 2.3.0 : Thu May 09 2019 - 08:48:08 CEST