index.md (2077B)
1 New terminal in current directory 2 ================================= 3 4 This patch allows you to spawn a new st terminal using Ctrl-Shift-Return. It 5 will have the same CWD (current working directory) as the original st instance. 6 7 The `getcwd_by_pid` function is inspired on [the function with the same name of 8 dvtm](https://github.com/martanne/dvtm/blob/master/dvtm.c#L1036). 9 10 By default the current st terminal will be the parent process of the new terminal. 11 This can conflict with the swallow patch for dwm and can result in the wrong st 12 terminal window being swallowd. The orphan variant of this patch works around this 13 issue by spawning the new terminal window as an orphan instead (meaning that it 14 will have no parent process). 15 16 To have newterm working with tabbed, apply the st-newterm-0.8.2-tabbed.diff patch 17 on top of st-newterm-0.8.2.diff. 18 19 To have tmux support, apply the st-newterm-0.9-tmux.diff patch on top of 20 st-newterm-0.9.diff. 21 22 With the tmux patch, newterm won't launch a new terminal with the CWD of the tmux 23 client itself, but it will use the CWD of the current process in the tmux session 24 running under st. 25 26 The tmux client must be a direct child of st in order to make newterm detect it 27 (you'll need to use `exec tmux` or similar). If the child of st isn't a tmux 28 client, newterm will fallback to the CWD of st's child (which is what newterm 29 does without the tmux patch). 30 31 The tmux patch only works on Linux. 32 33 Download 34 -------- 35 36 * [st-newterm-0.8.2.diff](st-newterm-0.8.2.diff) 37 * [st-newterm-0.8.2-tabbed.diff](st-newterm-0.8.2-tabbed.diff) 38 * [st-newterm-orphan-20210712-4536f46.diff](st-newterm-orphan-20210712-4536f46.diff) 39 * [st-newterm-20220221-0.8.5.diff](st-newterm-20220221-0.8.5.diff) 40 * [st-newterm-0.9.diff](st-newterm-0.9.diff) 41 * [st-newterm-0.9-tabbed.diff](st-newterm-0.9-tabbed.diff) 42 * [st-newterm-0.9-tmux.diff](st-newterm-0.9-tmux.diff) 43 44 Authors 45 ------- 46 * MatÃas Lang 47 * Stein Bakkeby (orphan version) 48 * Gaspar Vardanyan (tabbed support) 49 * [Meator](https://github.com/meator) - <meator.dev@gmail.com> (all of the st-newterm-0.9* patches)