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
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 4 deletions

View file

@ -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)

View file

@ -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. '''))
# }}}