switch-to-new-documents

Usage

switch-to-new-documents expression

Aliases

switch_to_new_documents

Description

If non-zero, XSH changes current node to the document node of a newly open/created files every time a new document is opened or created with open or create. Default value for this option is 1.

This command is equivalent to setting the $SWITCH_TO_NEW_DOCUMENTS variable.