Skip to content

Commit ec78731

Browse files
committed
Initial commit of my SublimeText 2 user settings
0 parents  commit ec78731

13 files changed

+174
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

Base File.sublime-settings

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"jsdocs_indentation_spaces": 1,
3+
"jsdocs_spacer_between_sections": true
4+
}

Default (Linux).sublime-keymap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[
2+
]

Default (OSX).sublime-keymap

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[
2+
{ "keys": ["f1"], "command": "goto_documentation" },
3+
{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" },
4+
{ "keys": ["f2"], "command" : "php_get_set"},
5+
{ "keys": ["f2"], "command" : "php_get_set"},
6+
{ "keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser"} },
7+
{ "keys": ["j", "j"], "command": "exit_insert_mode",
8+
"context":
9+
[
10+
{ "key": "setting.command_mode", "operand": false },
11+
{ "key": "setting.is_widget", "operand": false }
12+
]
13+
},
14+
{ "keys": ["("], "command": "insert_snippet", "args": {"contents": "($0);"}, "context":
15+
[
16+
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
17+
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
18+
{
19+
"operand": "source.js",
20+
"operator": "equal",
21+
"match_all": false,
22+
"key": "selector"
23+
},
24+
{ "key": "following_text", "operator": "not_regex_contains", "operand": ";", "match_all": true },
25+
{ "key": "preceding_text", "operator": "regex_contains", "operand": "[a-zA-Z0-9_$]+(\\.[a-zA-Z0-9_$]+)+[ ]?", "match_all": true }
26+
]
27+
},
28+
29+
// 'obj_method': function () {| --> 'obj_method': function () {|},
30+
{ "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{$1},$0"}, "context":
31+
[
32+
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
33+
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
34+
{
35+
"operand": "source.js",
36+
"operator": "equal",
37+
"match_all": false,
38+
"key": "selector"
39+
},
40+
{ "key": "preceding_text", "operator": "regex_contains", "operand": "'[a-zA-Z0-9_$]+':[ ]?function[ ]?\\(.*\\)[ ]?$", "match_all": true }
41+
]
42+
}
43+
]

Default (Windows).sublime-keymap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[
2+
]

JavaScript.sublime-settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}

Package Control.sublime-settings

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"auto_upgrade_last_run": 1338590136,
3+
"installed_packages":
4+
[
5+
"Additional PHP Snippets",
6+
"Alignment",
7+
"Clipboard History",
8+
"Color Highlighter",
9+
"DocBlockr",
10+
"Gist",
11+
"Git",
12+
"Goto Documentation",
13+
"INI",
14+
"Markdown Preview",
15+
"Package Control",
16+
"PHPUnit",
17+
"SideBarEnhancements",
18+
"SublimeCodeIntel",
19+
"SublimeLinter",
20+
"Tag",
21+
"Theme - Soda",
22+
"ZenCoding"
23+
]
24+
}

Preferences.sublime-settings

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"caret_style": "phase",
3+
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
4+
"detect_slow_plugins": false,
5+
"font_face": "Bitstream Vera Sans Mono",
6+
"font_size": 12.0,
7+
"highlight_line": true,
8+
"ignored_packages":
9+
[
10+
],
11+
"show_full_path": true,
12+
"tab_size": 2,
13+
"theme": "Soda Dark.sublime-theme",
14+
"trim_trailing_white_space_on_save": true
15+
}

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
SublimeTextUser
2+
===============
3+
4+
My SublimeText settings and my attempt not lose them + provide portability
5+
6+
# Current Packages
7+
8+
I'll add links to these once I feel like not being lazy
9+
10+
* Additional PHP Snippets
11+
* Alignment
12+
* Clipboard History
13+
* Color Highligther
14+
* DocBlockr
15+
* Gist
16+
* Git
17+
* Goto Documentation
18+
* INI
19+
* Markdown Preview
20+
* PHP Getter Setter
21+
* PHPUnit
22+
* Package Control
23+
* SideBarEnhancments
24+
* SublimeCodeIntel
25+
* SublimeLinter
26+
* Tag
27+
* Theme - Soda
28+
* ZendCoding
29+
30+
# Packages I Need to Checkout
31+
32+
* Xdebug

SublimeLinter.sublime-settings

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
/*
3+
Sets the mode in which SublimeLinter runs:
4+
5+
true - Linting occurs in the background as you type (the default).
6+
false - Linting only occurs when you initiate it.
7+
"load-save" - Linting occurs only when a file is loaded and saved.
8+
*/
9+
"sublimelinter_executable_map":
10+
{
11+
"php" : "/usr/bin/php"
12+
},
13+
"sublimelinter_disable":
14+
[
15+
]
16+
}

ZendDebug.sublime-snippet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<snippet>
2+
<content><![CDATA[
3+
Zend_Debug::dump(${1:$SELECTION});
4+
]]></content>
5+
<tabTrigger>deb</tabTrigger>
6+
<scope>source.php</scope>
7+
<description>Zend debug helper function</description>
8+
</snippet>

getset.sublime-snippet

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<snippet>
2+
<content><![CDATA[public function get${1/(.*)/\u$1/}() {
3+
return \$this->${1:$SELECTION};
4+
}
5+
6+
public function set${1/(.*)/\u$1/}(\$$1) {
7+
\$this->$1 = \$$1;
8+
return \$this;
9+
}
10+
]]></content>
11+
<!-- Optional: Tab trigger to activate the snippet -->
12+
<tabTrigger>getset</tabTrigger>
13+
<!-- Optional: Scope the tab trigger will be active in -->
14+
<scope>source.php</scope>
15+
<!-- Optional: Description to show in the menu -->
16+
<description>Create getter and setter methods</description>
17+
</snippet>

zend_debug.sublime-snippet

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
Zend_Debug::dump(${1:});
4+
]]></content>
5+
<tabTrigger>deb</tabTrigger>
6+
<scope>source.php</scope>
7+
</snippet>

0 commit comments

Comments
 (0)