switch-to-buffer name new-window| Keys | Menu | |
| X | ^Xb or F6 | View/Buffers/Switch Buffer... |
Display buffer name. If no such buffer exists, a new buffer is created. The syntactic mode of the new buffer is either TEXT or the root category depending on whether editor variable sg:textual-mode is true or false, and is initialized with a corresponding placeholder.
If new-window is yes, the buffer is displayed in a new window and if no, the buffer is displayed in the window from which the command was invoked. A third possibility for new-window is replace-all. Suppose the command was invoked in a window displaying buffer b and several other windows also display buffer b, possibly in different views. Then all existing windows displaying b are switched to the new buffer and the association of windows to views is left unchanged. This option permits multi-window, multi-view setups to be reused for different buffers.
The dialog box associated with the command contains a list of existing buffers. Double-clicking Select on a buffer name invokes the command on that name.