Support os_window as a destination for the pipe function

This commit is contained in:
Kovid Goyal
2018-09-10 08:10:50 +05:30
parent 6930edfd8a
commit 9782f16635
2 changed files with 5 additions and 4 deletions

View File

@@ -824,6 +824,8 @@ class Boss:
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)

View File

@@ -840,10 +840,9 @@ run a fullscreen terminal application, the secondary screen will be the screen
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. '''))
# }}}