234 Commits

Author SHA1 Message Date
Kenneth Reitz f8856dbb94 command r was driving me crazy 2010-04-26 14:52:04 -04:00
Thomas Aylott ad7c0e4007 create element and populate smart snippet 2009-10-05 12:40:39 -04:00
Thomas Aylott 08d9a23e41 t ⇥ this snippet 2009-10-05 12:39:38 -04:00
Thomas Aylott 1f5998b73b a ⇥ arguments snippet 2009-10-05 12:39:06 -04:00
Thomas Aylott 507153ff45 tab completions to convert arguments to Array.prototype.slice.call(arguments) and back. 2009-10-05 12:38:33 -04:00
Thomas Aylott 164adcf71f NEW Swap this to self command
Select some code and use this command to swap out the use of "this" with "self". The command also inserts a "var self = this;" line to the top and removes it when toggling off!
2009-10-05 12:37:00 -04:00
Thomas Aylott 72b2961084 fallback to home for runjs require paths 2009-10-05 12:35:23 -04:00
Thomas Aylott 935f60436d fixed syntax coloring for operators 2009-10-05 12:35:04 -04:00
Thomas Aylott 639c28afba updated try/catch snippet 2009-10-05 12:34:44 -04:00
Thomas Aylott 18a99d2093 updated mootools require in runjs 2009-10-05 12:34:04 -04:00
Thomas Aylott 07b5239643 add easy jquery require to runjs 2009-10-05 12:33:09 -04:00
Thomas Aylott efb280004c changed console.assert tab completion to "ass", yes. 2009-10-05 12:30:56 -04:00
Thomas Aylott 7373ab549f updated mootools url 2009-10-05 12:30:24 -04:00
Thomas Aylott 2960e65c39 Updated to the latest completions and tooltips scraped from Quirksmode.org 2009-04-29 15:16:10 -04:00
Thomas Aylott 02bd00cb2d Merge branch 'master' of git@github.com:subtleGradient/javascript.tmbundle 2009-04-29 15:11:39 -04:00
Thomas Aylott f2dbcc6ce5 updated menu 2009-04-29 15:10:44 -04:00
Thomas Aylott b3ea098912 prototype snippet like the docand win snippets 2009-04-29 15:10:33 -04:00
Thomas Aylott 918b38f11a standalone jsspec file snippet 2009-04-29 15:10:11 -04:00
Thomas Aylott a94885b7cb Class Closure Idiom Snippet 2009-04-29 15:09:52 -04:00
Thomas Aylott 8f3bd1c585 changed tab completion word for greater unification 2009-04-29 15:09:32 -04:00
Thomas Aylott 83b4a0c931 adding some stuff to the completions 2009-04-29 15:08:43 -04:00
Thomas Aylott 33ff847d49 FIXED completions giant images. never did figure out what the deal is, must be a problem in tm_dialog itselg 2009-04-27 02:02:17 -07:00
Thomas Aylott 24df8f3728 added mutator scope for special styling mutating method names 2009-04-22 00:00:07 -04:00
Thomas Aylott a2e8cae166 always show a tooltip when asked to 2009-04-21 23:59:43 -04:00
Thomas Aylott f7d792a102 Moved complete inside the bundle for those without the latest review support 2009-04-17 17:42:50 -04:00
Thomas Aylott 1e3869017a many snippets for common idioms 2009-04-17 17:41:53 -04:00
Thomas Aylott 0b17098fc2 [NEW] Run Javascript command can now parse your script for "@require 'something'"; Require relative paths, urls and keywords. Require CSS or JS. 2009-04-17 17:37:43 -04:00
Thomas Aylott 4481ff2b91 added show code button on run javascript 2009-02-25 11:18:39 -05:00
Thomas Aylott 81830b803b rearrange includes to make keywords have a higher priority 2009-02-16 23:35:11 -05:00
Thomas Aylott b0496503f8 Merge branch 'master' of git@github.com:subtleGradient/javascript.tmbundle
Conflicts:

	Commands/Complete.tmCommand
	Preferences/Indent.tmPreferences
	Preferences/Symbol List Banned.tmPreferences
	"Snippets/try \342\200\246 catch.tmSnippet"
	Syntaxes/JavaScript Basic.tmLanguage
	info.plist
2009-02-15 03:29:42 -05:00
Thomas Aylott c8d89e45c6 updated sort 2009-02-15 08:14:37 +00:00
Thomas Aylott 93a02932d0 allow completions inside strings 2009-02-15 08:14:36 +00:00
Thomas Aylott e740550e91 updated list of banned scopes from symbol list 2009-02-15 08:14:36 +00:00
Thomas Aylott fac259562e Added json support to indent prefs 2009-02-15 08:14:36 +00:00
Thomas Aylott d2bc10e4b3 new command: run javascript.
runs your current selection or document in an html output window. You can do console messages and check the html output window's console.
includes support for window.alert and window.confirm from Hans-Jörg Bibiko
properly corrects for line numbers in error messages
2009-02-15 08:14:36 +00:00
Thomas Aylott 1ede89fb65 new documentation commands 2009-02-15 08:14:36 +00:00
Thomas Aylott 2fedbea18a new closure snippet 2009-02-15 08:14:36 +00:00
Thomas Aylott f2501c8d2f added wrapping support to a few snippets 2009-02-15 08:14:36 +00:00
Thomas Aylott 590fd26aae Updated Javascript Basic syntax.
literal-function-call
    literal-variable
    keyword.operators
    literal-regex
2009-02-15 08:14:36 +00:00
Thomas Aylott ba5fa1d4d8 Updated folding to that of Embedded 2009-02-15 08:14:36 +00:00
Thomas Aylott a8b1d18261 MUCH simpler and more bulletproof regex for indent and folding with tests 2009-02-15 08:14:35 +00:00
Thomas Aylott 4d6df87768 Fixed a strange issue with the folding & indent. It wasn't properly matching escaped strings inside strings 2009-02-15 08:14:35 +00:00
Thomas Aylott e3c2594e12 Code Completion with tooltips from Quirksmode.org (with permission) 2009-02-15 08:14:35 +00:00
Thomas Aylott 67ed84b3e0 Beginning README
addEventListener snippet default to bubbling
Updated info.plist
2009-02-15 08:14:35 +00:00
Thomas Aylott fd574d60c2 Renamed the "normal" for loop to "for (…) {…} (Classic)"
diff --git "a/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet" "b/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
index 9001c98..c6ddbf7 100644
--- "a/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
+++ "b/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
@@ -7,7 +7,7 @@
 	${0:$1[$20]}
 }</string>
 	<key>name</key>
-	<string>for (…) {…}</string>
+	<string>for (…) {…} (Classic)</string>
 	<key>scope</key>
 	<string>source.js</string>
 	<key>tabTrigger</key>
2009-02-15 08:14:35 +00:00
Thomas Aylott ca274896fa Updated Javascript syntax test 2009-02-15 08:14:35 +00:00
Thomas Aylott 588708f2f9 don't show function-calls in the symbol list 2009-02-15 08:14:35 +00:00
Thomas Aylott 869e993216 Removed the // smart string 2009-02-15 08:14:35 +00:00
Thomas Aylott 3f8ff5c7c4 New snippets for switch / case 2009-02-15 08:14:35 +00:00
Thomas Aylott 3dd8342167 Fix an issue where a @ in a block comment would cause IE conditional comment matching for the rest of the document 2009-02-15 08:14:34 +00:00