From 9782f16635f3cd74939234a78af7bd9052b591a0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 10 Sep 2018 08:10:50 +0530 Subject: [PATCH] Support os_window as a destination for the pipe function --- kitty/boss.py | 2 ++ kitty/config_data.py | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index 69bae04d1..5531d6ca1 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -824,6 +824,8 @@ def create_window(): tm = self.active_tab_manager if tm is not None: tm.new_tab(special_window=create_window(), cwd_from=cwd_from) + elif dest == 'os_window': + self._new_os_window(create_window(), cwd_from=cwd_from) else: import subprocess subprocess.Popen(cmd) diff --git a/kitty/config_data.py b/kitty/config_data.py index 5c973bffd..48635fe77 100644 --- a/kitty/config_data.py +++ b/kitty/config_data.py @@ -840,10 +840,9 @@ def macos_titlebar_color(x): you return to when quitting the application. You can also use ``none`` for no :file:`STDIN` input. -To open in a new window or tab use ``window`` or ``tab`` respectively. You can -also use ``none`` in which case the data will be piped into the program without -creating any windows. -''')) +To open in a new window, tab or new OS window, use ``window``, ``tab``, or +``os_window`` respectively. You can also use ``none`` in which case the data +will be piped into the program without creating any windows. ''')) # }}}