问题描述
Sublime Text 4 刚刚发布。已经实现了 Sublime Text 3/2 的行为更改。在新的 Sublime Text 4 中,如果一个窗口已经打开,当用户(我)从终端使用 IntfAB
命令时,它会将我带到当前打开的 > 崇高的文本窗口。这不是我想要的行为。
以前在 Sublime 3/2 中,后续使用 $ subl .
命令会在这个目录中打开一个新的 Sublime Text 窗口(我现在有 2 个单独的窗口,都在这个目录中,包含所有这些项目的子目录)在侧边栏中)。
如何让 Sublime Text 4 从终端打开其他窗口?我想从终端打开同一个项目中的多个窗口。
谢谢。
解决方法
命令行参数 -n
或 --new-window
告诉 subl
创建一个新窗口。
λ 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.