Thanks, I am on an old release and the option doesn't seem to work. As you suggested, I wrote a script to get the last window index and got the job done.
On Thursday, 22 October 2020 at 15:23:07 UTC+5:30 [email protected] wrote: > If your tmux is new enough then "tmux neww -at'{end}'" otherwise you will > need to write a script that uses list-windows. > > On Thu, 22 Oct 2020 at 10:17, Sanish Suresh <[email protected]> wrote: > >> Hi all, >> >> I am hoping to find an answer to this from this group. I have tried >> different options after reading the man page, but all in vain. >> >> I want to add windows at the last index of my current session. Let us say >> I have windows at the indices: 1, 2, 7, 8, 12, 13. I want to write a >> script, which will automatically figure out the last window index and then >> add a new window after it (14 in this example). >> >> *new-window* [-adkP] [-c start-directory] [-F format] [-n window-name] >> [-t target-window] [shell-command] >> >> For "target-window", the man page says that ‘^’ selects the highest >> numbered window. Accordingly I tried different variations, nothing seem to >> be working. Any help will be greatly appreciated. >> >> Regards, >> Sanish >> >> -- >> You received this message because you are subscribed to the Google Groups >> "tmux-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web, visit >> https://groups.google.com/d/msgid/tmux-users/d7822a0c-2ea6-45d2-9b9c-3a0d6de795f8n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tmux-users/d7822a0c-2ea6-45d2-9b9c-3a0d6de795f8n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/09f913d2-3744-4d03-97f5-f5fb58f1673fn%40googlegroups.com.
