From 8fa7a6daee1cf0175cd60ba116fadfca6b3068a1 Mon Sep 17 00:00:00 2001 From: Achal Shah Date: Fri, 20 Nov 2015 21:35:56 -0800 Subject: [PATCH] Update new_session documentation --- tmuxp/server.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tmuxp/server.py b/tmuxp/server.py index 7aead56e14..5cde17bd31 100644 --- a/tmuxp/server.py +++ b/tmuxp/server.py @@ -404,15 +404,11 @@ def new_session(self, $ tmux new-session -s :type session_name: string - :param detach: create session background:: + :param attach: create session in the foreground. ``attach=False`` is + equivalent to:: $ tmux new-session -d - :type detach: bool - - :param attach_if_exists: if the session_name exists, attach it. - if False, this method will raise a - :exc:`tmuxp.exc.TmuxSessionExists` exception - :type attach_if_exists: bool + :type attach: bool :param kill_session: Kill current session if ``$ tmux has-session`` Useful for testing workspaces.