From 704e02f030e0e077ece9afcf3fd0fadf91dd8d2c Mon Sep 17 00:00:00 2001 From: haraldmartin Date: Tue, 26 Sep 2006 15:50:54 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=A2=20Added=20a=20really=20handy=20snippe?= =?UTF-8?q?t=20for=20all=20iteration=20methods.=20Instead=20of=20typing=20?= =?UTF-8?q?'each'=20and=20then=20=E2=87=A5=20(tab)=20to=20get=20the=20each?= =?UTF-8?q?=20snippet,=20you=20now=20press=20=E2=87=A7=E2=8C=83=E2=8C=98(?= =?UTF-8?q?=20and=20you'll=20get=20the=20iterator=20function.=20Therefore?= =?UTF-8?q?=20this=20works=20for=20all=20iterator=20functions=20(inject,?= =?UTF-8?q?=20reject,=20each,=20map=20etc)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Moved more of the genreric JavaScript snippets (subtleGradient's?) from Prototype → JS bundle • Added whitespace around '=' and ':' in the Create Class alt snippet (we aren't afraid of whitespace, are we?) git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript.tmbundle@5310 dfb7d73b-c2ec-0310-8fea-fb051d288c6d --- Preferences/Symbol List Banned.tmPreferences | 17 +++++++++++ Preferences/Symbol List Class.tmPreferences | 21 ++++++++++++++ .../Symbol List Instance.tmPreferences | 21 ++++++++++++++ Preferences/Symbol List Sub 1.tmPreferences | 21 ++++++++++++++ Preferences/Symbol List Sub 2.tmPreferences | 21 ++++++++++++++ Snippets/Object Method String.tmSnippet | 18 ++++++++++++ Snippets/Object Method.tmSnippet | 18 ++++++++++++ Snippets/Object Value JS.tmSnippet | 16 +++++++++++ info.plist | 28 +++++++++++++++++-- 9 files changed, 178 insertions(+), 3 deletions(-) create mode 100644 Preferences/Symbol List Banned.tmPreferences create mode 100644 Preferences/Symbol List Class.tmPreferences create mode 100644 Preferences/Symbol List Instance.tmPreferences create mode 100644 Preferences/Symbol List Sub 1.tmPreferences create mode 100644 Preferences/Symbol List Sub 2.tmPreferences create mode 100644 Snippets/Object Method String.tmSnippet create mode 100644 Snippets/Object Method.tmSnippet create mode 100644 Snippets/Object Value JS.tmSnippet diff --git a/Preferences/Symbol List Banned.tmPreferences b/Preferences/Symbol List Banned.tmPreferences new file mode 100644 index 0000000..c51de2a --- /dev/null +++ b/Preferences/Symbol List Banned.tmPreferences @@ -0,0 +1,17 @@ + + + + + name + Symbol List Banned + scope + source.js meta.property.function entity.name.function + settings + + showInSymbolList + 0 + + uuid + 834BC727-6B31-4073-A161-4823227219EF + + diff --git a/Preferences/Symbol List Class.tmPreferences b/Preferences/Symbol List Class.tmPreferences new file mode 100644 index 0000000..50d8a7f --- /dev/null +++ b/Preferences/Symbol List Class.tmPreferences @@ -0,0 +1,21 @@ + + + + + name + Symbol List Class + scope + source.js entity.name.type.class + settings + + showInSymbolList + 1 + symbolTransformation + + s/^/• /g; + + + uuid + 3CEA49B2-A5C5-405C-82E2-B8B668877C37 + + diff --git a/Preferences/Symbol List Instance.tmPreferences b/Preferences/Symbol List Instance.tmPreferences new file mode 100644 index 0000000..55ebd5f --- /dev/null +++ b/Preferences/Symbol List Instance.tmPreferences @@ -0,0 +1,21 @@ + + + + + name + Symbol List Instance + scope + source.js entity.name.instance + settings + + showInSymbolList + 1 + symbolTransformation + + s/^/\t/g; + + + uuid + E6EB7CC8-04E8-43A9-93B2-BC9EF5BA862B + + diff --git a/Preferences/Symbol List Sub 1.tmPreferences b/Preferences/Symbol List Sub 1.tmPreferences new file mode 100644 index 0000000..28acc13 --- /dev/null +++ b/Preferences/Symbol List Sub 1.tmPreferences @@ -0,0 +1,21 @@ + + + + + name + Symbol List Sub 1 + scope + source.js object.property.function -(meta.group meta.group) + settings + + showInSymbolList + 1 + symbolTransformation + + s/^/ :/g; + + + uuid + 73557394-4F0F-4DD3-8029-EEE8201AC7F5 + + diff --git a/Preferences/Symbol List Sub 2.tmPreferences b/Preferences/Symbol List Sub 2.tmPreferences new file mode 100644 index 0000000..be4beb8 --- /dev/null +++ b/Preferences/Symbol List Sub 2.tmPreferences @@ -0,0 +1,21 @@ + + + + + name + Symbol List Sub 2 + scope + source.js meta.group meta.group object.property.function + settings + + showInSymbolList + 1 + symbolTransformation + + s/^/  :/g; + + + uuid + 51841DDB-C2A4-461C-A8AB-6C124AD50EAE + + diff --git a/Snippets/Object Method String.tmSnippet b/Snippets/Object Method String.tmSnippet new file mode 100644 index 0000000..8b7ec64 --- /dev/null +++ b/Snippets/Object Method String.tmSnippet @@ -0,0 +1,18 @@ + + + + + content + '${1:${2:#thing}:${3:click}}': function(element){ + $0 +}${10:,} + name + Object Method String + scope + source.js + tabTrigger + '':f + uuid + 7B9AEFCC-B450-416D-8527-430FE2A08568 + + diff --git a/Snippets/Object Method.tmSnippet b/Snippets/Object Method.tmSnippet new file mode 100644 index 0000000..5ee0d08 --- /dev/null +++ b/Snippets/Object Method.tmSnippet @@ -0,0 +1,18 @@ + + + + + content + ${1:method_name}: function(${3:attribute}){ + $0 +}${10:,} + name + Object Method + scope + source.js + tabTrigger + :f + uuid + 77065D69-742A-4FF0-9A41-AD211DFBE72F + + diff --git a/Snippets/Object Value JS.tmSnippet b/Snippets/Object Value JS.tmSnippet new file mode 100644 index 0000000..b741217 --- /dev/null +++ b/Snippets/Object Value JS.tmSnippet @@ -0,0 +1,16 @@ + + + + + content + ${1:value_name}:${0:value}, + name + Object Value JS + scope + source.js + tabTrigger + :, + uuid + AD506BEC-B33C-4168-A900-0A4D386A4B05 + + diff --git a/info.plist b/info.plist index 9397618..ab0aa41 100644 --- a/info.plist +++ b/info.plist @@ -18,16 +18,31 @@ 31964029-9D71-4ADC-8213-DFE5C4E222B3 011C4681-FBEC-4891-9326-3DECFCDED6D6 ------------------------------------ - 009A3E6C-FE3F-4A18-8759-2DC31F17BBE2 DC8B46FB-8ADA-45EA-8F36-94C807A0D302 + ------------------------------------ + 6E3C53BB-9F61-4299-8F4D-0A026BCCA975 submenus - + + 6E3C53BB-9F61-4299-8F4D-0A026BCCA975 + + items + + 009A3E6C-FE3F-4A18-8759-2DC31F17BBE2 + AD506BEC-B33C-4168-A900-0A4D386A4B05 + 77065D69-742A-4FF0-9A41-AD211DFBE72F + 7B9AEFCC-B450-416D-8527-430FE2A08568 + + name + Extras + + name JavaScript ordering + 77065D69-742A-4FF0-9A41-AD211DFBE72F B4874A14-2491-465A-A349-61E4EBCF4700 F0E4FB6A-4878-48C6-A777-62438DF1E14F 2F96136B-0193-42F5-90FC-B6F456A3AD77 @@ -36,11 +51,18 @@ 4C6EDB43-3E2E-411B-A016-13C135C59833 93E017CC-6F27-11D9-90EB-000D93589AF6 BC062860-3346-4D3B-8421-C5543F83D11F + 834BC727-6B31-4073-A161-4823227219EF + 3CEA49B2-A5C5-405C-82E2-B8B668877C37 + E6EB7CC8-04E8-43A9-93B2-BC9EF5BA862B + 73557394-4F0F-4DD3-8029-EEE8201AC7F5 + 51841DDB-C2A4-461C-A8AB-6C124AD50EAE F19F3732-39A7-48EC-A72B-A8F477A01795 31964029-9D71-4ADC-8213-DFE5C4E222B3 011C4681-FBEC-4891-9326-3DECFCDED6D6 - 009A3E6C-FE3F-4A18-8759-2DC31F17BBE2 + AD506BEC-B33C-4168-A900-0A4D386A4B05 DC8B46FB-8ADA-45EA-8F36-94C807A0D302 + 009A3E6C-FE3F-4A18-8759-2DC31F17BBE2 + 7B9AEFCC-B450-416D-8527-430FE2A08568 uuid AAB4FD74-73F9-11D9-B89A-000D93589AF6