sublime text 2 start from command line
来源:互联网 发布:淘宝确认收货是什么 编辑:程序博客网 时间:2024/05/19 17:25
OS X Command Line
Overview
Sublime Text 2 includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text 2, as well working as an EDITOR for unix tools, such as git and subversion.
Setup
The first task is to make a symlink to subl. Assuming you've placed Sublime Text 2 in the Applications folder, and that you have a ~/bin directory in your path, you can run:
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
Usage
Run subl --help,Usage: subl [arguments] [files] edit the given files or: subl [arguments] [directories] open the given directories or: subl [arguments] - edit stdinArguments: --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 backto 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 specificlocation.
EDITOR
To use Sublime Text 2 as the editor for many commands that prompt for input, set your EDITOR environment variable:
export EDITOR='subl -w'
Specifying -w will cause the subl command to not exit until the file is closed.
MacPorts
If you have the MacPorts version of Python installed, then starting Sublime Text 2 via the subl will not work correctly. As a workaround, start Sublime Text 2 first via Finder, and then interact with it using subl.
From https://www.sublimetext.com/docs/2/osx_command_line.html
- sublime text 2 start from command line
- Launch Sublime Text 3 from the command line
- Start / Stop / Enable / Disable Terminal services from command line
- Lab01 Manipulating text files from the command line
- DSO missing from command line
- Start OpenOffice.org using the command line
- 当你需要用命令行执行putty时(When you need start putty from command line)
- Creating a website from the command line
- open .dmg file from command line
- Uninstall DB2 on Linux from Command Line
- Event Configuration from the Command Line
- Process options from command line in BASH
- Creating SQL procedures from the command line
- Running the Compiler from the Command Line
- Developing android applications from command line
- Running DataVision from the Command Line
- Command Line -- Lesson 2
- sublime text 2 备忘
- Jquery 1.9.0 以上版本扩展$.browser无法使用的问题
- maven的核心概念
- pods 更新指定库
- Fresco的基本使用
- 02js学习笔记
- sublime text 2 start from command line
- [科学60s]Climate agreement was costing American workers
- Action处理请求,转发回的页面显示空白问题
- 【百度地图API】如何利用自己的数据制作社交地图?只显示可视区域内的标注
- Maven的简介,Maven工程搭建POM,坐标
- Netty源码分析:accept
- Jupyter notebook 安装,初步使用
- NOIP 2017 赛前集训总结 C++版
- NOIP模拟 边的处理【分治+动态规划】