Skip to content

Commit fc83425

Browse files
committed
Working refactor
1 parent 068f4b4 commit fc83425

29 files changed

+493
-1140
lines changed

AdvancedNewFile.py

Lines changed: 2 additions & 767 deletions
Large diffs are not rendered by default.

AdvancedNewFile.sublime-settings

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@
7878
// false by default
7979
"auto_refresh_sidebar": false,
8080

81-
// A boolean specifying if an AdvancedNewFile option should be shown in the
82-
// sidebar context menu.
83-
"show_sidebar_menu": false,
84-
8581
// A string specifying the type of auto completion to use. Valid values are
8682
// "windows" or "nix"
8783
"completion_type": "windows",

Default (Linux).sublime-keymap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
2-
{ "keys": ["super+alt+n"], "command": "advanced_new_file"},
3-
{ "keys": ["shift+super+alt+n"], "command": "advanced_new_file", "args": {"is_python": true}},
2+
{ "keys": ["super+alt+n"], "command": "advanced_new_file_new"},
3+
{ "keys": ["shift+super+alt+n"], "command": "advanced_new_file_new", "args": {"is_python": true}},
44
{
55
"keys": ["tab"],
66
"command": "insert",
@@ -9,4 +9,4 @@
99
"key": "setting.anf_panel"
1010
}]
1111
}
12-
]
12+
]

Default (OSX).sublime-keymap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
2-
{ "keys": ["super+alt+n"], "command": "advanced_new_file"},
3-
{ "keys": ["shift+super+alt+n"], "command": "advanced_new_file", "args": {"is_python": true}},
2+
{ "keys": ["super+alt+n"], "command": "advanced_new_file_new"},
3+
{ "keys": ["shift+super+alt+n"], "command": "advanced_new_file_new", "args": {"is_python": true}},
44
{
55
"keys": ["tab"],
66
"command": "insert",
@@ -9,4 +9,4 @@
99
"key": "setting.anf_panel"
1010
}]
1111
}
12-
]
12+
]

Default (Windows).sublime-keymap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
2-
{ "keys": ["ctrl+alt+n"], "command": "advanced_new_file"},
3-
{ "keys": ["shift+ctrl+alt+n"], "command": "advanced_new_file", "args": {"is_python": true}},
2+
{ "keys": ["ctrl+alt+n"], "command": "advanced_new_file_new"},
3+
{ "keys": ["shift+ctrl+alt+n"], "command": "advanced_new_file_new", "args": {"is_python": true}},
44
{
55
"keys": ["tab"],
66
"command": "insert",

Default.sublime-commands

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[
2-
{ "caption": "AFN: Open File", "command": "advanced_new_file" },
3-
{ "caption": "AFN: Rename File", "command": "advanced_new_file", "args": { "rename": true} },
4-
{ "caption": "AFN: Delete File", "command": "advanced_new_file", "args": { "delete": true} }
2+
{ "caption": "ANF: New File", "command": "advanced_new_file_new" },
3+
{ "caption": "ANF: Rename File", "command": "advanced_new_file_move"},
4+
{ "caption": "ANF: Delete File", "command": "advanced_new_file_delete"},
5+
{ "caption": "ANF: Delete Current File", "command": "advanced_new_file_delete", "args": {"current": true}}
56
]

Main.sublime-menu

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
[
2-
{
3-
"mnemonic": "f",
4-
"id": "file",
5-
"children":
6-
[
7-
{ "caption": "-" },
8-
{ "caption": "New File With Name", "mnemonic": "n", "command": "advanced_new_file" },
9-
{ "caption": "Rename Current File", "mnemonic": "r", "command": "advanced_new_file", "args": { "rename": true } },
10-
{ "caption": "Delete Current File","mnemonic": "d", "command": "advanced_new_file", "args": { "delete": true } },
11-
]
12-
},
132
{
143
"caption": "Preferences",
154
"mnemonic": "n",

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ A boolean specifying if case should be ignored when building auto complete list.
138138

139139
A boolean specifying if folders should automatically refresh and update the sidebar. In some builds, the sidebar does not refresh when contents of project folder are updated. This setting is required to refresh the sidebar in these circumstances. False by default.
140140

141-
`show_sidebar_menu`:
142-
143-
A boolean specifying if an AdvancedNewFile option should be shown in the sidebar context menu.
144-
145141
`completion_type`:
146142

147143
A string specifying the type of auto completion to use. Valid values are "windows" or "nix".
@@ -172,7 +168,7 @@ String representing permissions to be applied to newly created files. E.g. "777"
172168

173169
`rename_default`:
174170

175-
Default input for renaming a file. Special value `<current>` will be replaced with the current file name.
171+
Default input for renaming a file. Special value `<filename>` will be replaced with the current file name. Special value `<filepath>` will be replaced with the absolute path of the current file.
176172

177173
### Project Specific Settings
178174
All of the above settings can also be specified as part of the project specific settings. These values override any previous values set by higher level settings, with aliases being an exception. Alias settings will be merged with higher level configurations for alias. In addition, if the same alias exist for both default/user settings and project settings, the project setting will take precedence.
@@ -239,12 +235,13 @@ In Sublime Text 2, the name of the folder will be the actual name of the folder,
239235
To specify the current working directory, simply type a colon, without any preceding text. Alternatively, set `relative_from_current` to `true` in your settings. Paths specified as relative paths will then begin from the current working directory.
240236

241237
## Notes
242-
Thanks to Dima Kukushkin ([xobb1t](https://github.com/xobb1t)) for the original work on this plugin. Also, thank you to [facelessuser](https://github.com/facelessuser), and by extension biermeester and matthjes for the idea of platform specific settings.
238+
Thanks to Dima Kukushkin ([xobb1t](https://github.com/xobb1t)) for the original work on this plugin. Also, thank you to [facelessuser](https://github.com/facelessuser), and by extension biermeester and matthjes for the idea of platform specific settings. Additional thanks to [kemayo](https://github.com/kemayo) for the work in identifying git executable.
243239

244240
### Contributors
245-
* [xobb1t](https://github.com/xobb1t)
246-
* [edmundask](https://github.com/edmundask)
247241
* [alirezadot](https://github.com/alirezadot)
248242
* [aventurella](https://github.com/aventurella)
243+
* [btsai](https://github.com/btsai)
244+
* [edmundask](https://github.com/edmundask)
249245
* [skuroda](https://github.com/skuroda)
246+
* [xobb1t](https://github.com/xobb1t)
250247

Side Bar.sublime-menu

Lines changed: 0 additions & 3 deletions
This file was deleted.

advanced_new_file/anf_delete.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)