我已经使用git bash的sublime了近一年了,但在更新到最新的git之后,似乎有些东西可能已经改变了。
Uptil现在我一直在使用sublime别名,没有任何问题:
git config --global core.editor "subl -n -w"
它在.gitconfig中显示为:
[core]
autocrlf = true
excludesfile = D:\\My Documents\\gitignore_global.txt
editor = subl -n -w
标志-n
用于新窗口,-w
用于等待结果。
我无法找到任何参考,为什么这会停止工作,只要sublime已经打开就可以工作,如果没有显示错误,它只会显示一个空的提示,下一个命令。有什么想法吗?
去年docs似乎没有太大变化,所以我不确定为什么这会停止打开一个新的崇高文本实例。
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).
同样,Git似乎没有改变他们将编辑器添加到git config的方式。