如何在Linux的命令行中打开Sublime Text 2文件到选项卡,而不是新窗口

phirschybar:

我已经安装了ST2,因此可以执行“ sublime file.txt”,它将在ST2窗口中打开。但是,如何在当前打开的窗口的新标签页中打开它?

Mikko Ohtamaa:

尝试Sublime命令行帮助

subl --help Sublime Text 2内部版本2217

Usage: subl [arguments] [files]         edit the given files
   or: subl [arguments] [directories]   open the given directories
   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
  -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
  -h or --help:        Show help (this message) and exit
  -v or --version:     Show version and exit

--wait is implied if reading from stdin. Use --stay to not switch back
to the terminal when a file is closed (only relevant if waiting for a file).

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

打开新窗口后,应按照默认行为在其中添加后续文件。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Sublime Text / subl:从命令行在特定组中打开文件

选项卡中Sublime Text 3文件名的缩写

使用命令行在Sublime Text 3中打开一个文件夹

如何在Atom编辑器中的其他选项卡而不是新窗口中打开新文件?

JavaScript在新窗口中打开,而不是选项卡

如何在服务器命令行中打开新选项卡?

Sublime Text 2 / Windows:从命令行启动?

Sublime Text 3:通过命令行在当前项目中打开文件夹

Sublime Text 2:如何在Ubuntu的不同工作区中打开新的Sublime Text窗口?

如何在IE选项卡而不是新窗口中打开URL-Java

如何在Sublime Text中仅使用键盘打开文件?

如何在命令行中打开另一个选项卡并继续使用Fabric?

如何在Sublime Text 3中禁用重叠选项卡或滚动选项卡

使Safari在现有窗口中以选项卡(而不是新窗口)打开新链接

在Linux中从命令行打开新的Opera窗口?

如何在命令行中的Microsoft Visio中打开文件?

是否已将任何文件浏览器很好地集成到Ubuntu 14.04LTS桌面中,并且能够在选项卡中打开桌面文件夹,而不是在新窗口中打开?

如何在命令行中获取所有打开的窗口的列表?

Sublime Text:在新窗口中打开文件夹,而不是当前窗口

以模式而不是新选项卡或新窗口的形式打开外部链接

使用SSJS在新窗口/选项卡中打开URL

在新窗口或选项卡中打开的 js 函数

如何打开从命令行到Firefox的URL,然后“切换到选项卡”?

如何在Sublime Text 3中设置文件选项卡(即tabset_control)的最大宽度?

如何在Linux命令行中替换多个文件中的字符串

如何在Linux命令行上解析CSV文件?

如何在带有多个命令行的新窗口中打开 exe?

Sublime-text3中的MarkdownPreview将打开Signal应用程序,而不是浏览器选项卡

如何在Linux中从命令行将图片复制到剪贴板?