Sublime Text 4:从终端打开多个 windows

Sublime Text 4: open multiple windows from terminal

Sublime Text 4 刚刚发布。已实施 Sublime Text 3/2 的行为更改。在新的 Sublime Text 4 中,如果 window 已经打开 当用户(我)从终端使用 $ subl . 命令时,它会将我带到 当前打开 Sublime Text window。这不是我想要的行为。

以前在 Sublime 3/2 中,后续使用 $ subl . 命令会在这个目录中打开一个新的 Sublime Text window(我现在有 2 个单独的 windows,都在此目录在边栏中包含所有此项目的子目录)。

如何获取 Sublime Text 4 以从终端打开附加 Windows?我想在同一个项目中打开多个 windows终端。

谢谢。

命令行参数 -n--new-window 告诉 subl 创建一个新的 window.

λ subl --help
Sublime Text build 4106

Usage: subl [arguments] [files]         Edit the given files
   or: subl [arguments] [directories]   Open the given directories
   or: subl [arguments] -- [files]      Edit files that may start with '-'
   or: subl [arguments] -               Edit stdin

Arguments:
  --project <project>:    Load the given project
  --command <command>:    Run the given command
  -n or --new-window:     Open a new window
  --launch-or-new-window: Only open a new window if the application is open
  -a or --add:            Add folders to the current window
  -w or --wait:           Wait for the files to be closed before returning
  -b or --background:     Don't activate the application
  -s or --stay:           Keep the application activated after closing the file
  --safe-mode:            Launch using a sandboxed (clean) environment
  -h or --help:           Show help (this message) and exit
  -v or --version:        Show version and exit

Filenames may be given a :line or :line:column suffix to open at a specific
location.