【发布时间】:2014-12-11 16:56:55
【问题描述】:
我正在尝试在 sublime Text 3 中打开一个目录。
我可以使用subl 命令从命令行启动 sublime。
帮助文本显示如下:
Sublime Text build 3059
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.
这样打开一个目录我应该可以使用下面的
subl ./folder_name
但这对我不起作用。 Sublime 确实打开(带有一个空的新文档),我在侧栏中看不到该文件夹。
我做错了吗...
顺便说一句。我正在使用带有“哦,我的鱼”附加组件的鱼壳(我还添加了 sublime 附加组件)......
【问题讨论】:
-
sublime /path/to/folder/file假设 sublime 指向可执行文件
标签: command-line sublimetext3 fish