README.md 1.15 KB
Newer Older
wyldphyre's avatar
wyldphyre committed
1
2
3
4
5
6
## sublime

Plugin for Sublime Text, a cross platform text and code editor, available for Linux, Mac OS X, and Windows.

### Requirements

Janosch Schwalm's avatar
Janosch Schwalm committed
7
 * [Sublime Text](https://www.sublimetext.com/)
wyldphyre's avatar
wyldphyre committed
8
9
10
11
12
13
14

### Usage

 * If `st` command is called without an argument, launch Sublime Text

 * If `st` is passed a directory, `cd` to it and open it in Sublime Text

wyldphyre's avatar
wyldphyre committed
15
16
 * If `st` is passed a file, open it in Sublime Text

CkEsc's avatar
CkEsc committed
17
 * If `stt` command is called, it is equivalent to `st .`, opening the current folder in Sublime Text
18
19
20
21

 * If `sst` command is called, it is like `sudo st`, opening the file or folder in Sublime Text. Useful for editing system protected files.

 * If `stp` command is called, it find a `.sublime-project` file by traversing up the directory structure. If there is no `.sublime-project` file, but if the current folder is a Git repo, opens up the root directory of the repo. If the current folder is not a Git repo, then opens up the current directory.
22
23
24
25

 * If `stn` command is called without an argument, create a stub `.sublime-project` file in the current working directory if one does not already exist

 * If `stn` is passed a directory, create a stub `.sublime-project` file in it