Skip to content

Commit 6f8f7de

Browse files
committed
initial commit of stable phpfmt sublime text plugin
0 parents  commit 6f8f7de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+8163
-0
lines changed

.no-sublime-package

Whitespace-only changes.

Default (Linux).sublime-keymap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{ "keys": ["f10"], "command": "analyse_this" },
3+
{ "keys": ["f11"], "command": "fmt_now" }
4+
]

Default (OSX).sublime-keymap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{ "keys": ["f10"], "command": "analyse_this" },
3+
{ "keys": ["f11"], "command": "fmt_now" }
4+
]

Default (Windows).sublime-keymap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{ "keys": ["ctrl+f10"], "command": "analyse_this" },
3+
{ "keys": ["ctrl+f11"], "command": "fmt_now" }
4+
]

Default.sublime-commands

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[
2+
{"caption": "phpfmt: format now", "command": "fmt_now"},
3+
{"caption": "phpfmt: indentation with spaces", "command": "indent_with_spaces"},
4+
5+
{"caption": "phpfmt: toggle additional transformations", "command": "toggle_pass_menu" },
6+
{"caption": "phpfmt: toggle excluded transformations", "command": "toggle_exclude_menu" },
7+
8+
{"caption": "phpfmt: toggle skip execution when .php.tools.ini is missing", "command": "toggle", "args": {"option":"skip_if_ini_missing"}},
9+
10+
{"caption": "phpfmt: toggle autocomplete", "command": "toggle", "args": {"option":"autocomplete"}},
11+
{"caption": "phpfmt: toggle dependency autoimport", "command": "toggle", "args": {"option":"autoimport"}},
12+
{"caption": "phpfmt: toggle format on save", "command": "toggle", "args": {"option":"format_on_save"}},
13+
14+
{"caption": "phpfmt: toggle PSR1 - Class and Methods names", "command": "toggle", "args": {"option":"psr1_naming"}},
15+
{"caption": "phpfmt: toggle PSR1", "command": "toggle", "args": {"option":"psr1"}},
16+
{"caption": "phpfmt: toggle PSR2", "command": "toggle", "args": {"option":"psr2"}},
17+
{"caption": "phpfmt: analyse this", "command": "analyse_this"},
18+
{"caption": "phpfmt: build autocomplete database", "command": "build_oracle"},
19+
{"caption": "phpfmt: getter and setter (camelCase)", "command": "sgter_camel"},
20+
{"caption": "phpfmt: getter and setter (Go)", "command": "sgter_go"},
21+
{"caption": "phpfmt: getter and setter (snake_case)", "command": "sgter_snake"},
22+
{"caption": "phpfmt: generate PHPDoc block", "command": "generate_phpdoc"},
23+
{"caption": "phpfmt: look for .php.tools.ini", "command": "toggle", "args": {"option":"readini"}},
24+
{"caption": "phpfmt: reorganize content of class", "command": "order_method"},
25+
26+
{"caption": "phpfmt: enable/disable additional transformations", "command": "toggle_pass_menu" },
27+
{"caption": "phpfmt: troubleshoot information", "command": "debug_env"},
28+
29+
{"caption": "phpfmt: update PHP binary path", "command": "update_php_bin"}
30+
]

Main.sublime-menu

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[
2+
{
3+
"mnemonic": "n",
4+
"caption": "Preferences",
5+
"id": "preferences",
6+
"children": [
7+
{
8+
"mnemonic": "P",
9+
"caption": "Package Settings",
10+
"id": "package-settings",
11+
"children": [
12+
{
13+
"caption": "phpfmt",
14+
"children": [
15+
{
16+
"caption": "Settings – Default",
17+
"args": {
18+
"file": "${packages}/phpfmt/phpfmt.sublime-settings"
19+
},
20+
"command": "open_file"
21+
},
22+
{
23+
"caption": "Settings – User",
24+
"args": {
25+
"file": "${packages}/User/phpfmt.sublime-settings"
26+
},
27+
"command": "open_file"
28+
},
29+
{
30+
"caption": "Key Bindings – Default",
31+
"args": {
32+
"file": "${packages}/phpfmt/Default.sublime-keymap"
33+
},
34+
"command": "open_file"
35+
},
36+
{
37+
"caption": "Key Bindings – User",
38+
"args": {
39+
"file": "${packages}/User/Default.sublime-keymap"
40+
},
41+
"command": "open_file"
42+
},
43+
{
44+
"caption": "-"
45+
}
46+
]
47+
}
48+
]
49+
}
50+
]
51+
}
52+
]

0 commit comments

Comments
 (0)