我想在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打开了(但只有一个空白的新文档),而且我在侧边栏中也看不到这个文件夹。我做错了吗...
顺便说一下,我正在使用带有“Oh my fish”附加组件的fish shell(我还添加了sublime附加组件)...
sublime /path/to/folder/file
- Sudip Bhandari