【问题标题】:Subl command ties up a terminalsubl 命令绑定一个终端
【发布时间】:2013-07-30 15:27:09
【问题描述】:

我经常使用

subl .

从终端打开 Sublime Text 中的文件夹的命令(我通常使用 Terminator for Ubuntu)。但它有一些令人讨厌的地方。该过程必须继续运行,占用整个终端选项卡,直到我执行 ^C 停止它(关闭 Sublime)或关闭文本编辑器。

这有点烦人。在我的 Mac 上,终端和 iTerm 让我可以在从终端打开 sublime 后转到另一行。是什么赋予了?有谁知道如何解决这个问题,还是我必须处理它并告诉我的孙子们在大萧条期间浪费屏幕空间的艰难日子?

谢谢!

【问题讨论】:

  • 请说出你的 subl 和 terminator 版本。
  • 您是否将subl -w 别名为subl
  • 使用 Sublime Text 2.02 和 Terminator 0.96。
  • 感谢@MattDMo。这就是它的作用!我很感激。

标签: ubuntu terminal sublimetext2 gnome-terminal terminator


【解决方案1】:
---> ~/bin/subl -help
Sublime Text 2 Build 2221

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.

我使用-s 标志。

alias subl='~/bin/subl -s'

【讨论】:

    猜你喜欢
    • 2012-08-07
    • 1970-01-01
    • 2016-06-26
    • 1970-01-01
    • 2012-05-09
    • 2020-08-27
    • 2013-03-17
    • 2019-08-29
    • 2012-04-29
    相关资源
    最近更新 更多