GithubHelp home page GithubHelp logo

jquery-tmbundle's Introduction

jQuery Bundle for TextMate Project status

This is a TextMate bundle to help with jQuery functions.

Authors

  • Karl Swedberg
  • Jonathan Chaffer

License

This bundle is dual-licensed under MIT and GPL licenses (just like jQuery).

Use it, change it, fork it, sell it. Do what you will, but please leave the author attribution.

Installation

You can install this bundle in TextMate by opening the preferences and going to the bundles tab. After installation it will be automatically updated for you. (This requires 2.0+)

Manual Installation

The quickest way to install the bundle is via the command line. If you have Git installed, you'll probably want to install with Git. With or without, you can simply copy and paste each line one by one into the Terminal instructions ( lifted from drnic ):

Install with Git

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/kswedberg/jquery-tmbundle.git "JavaScript jQuery.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'

Install without Git:

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
wget http://github.com/kswedberg/jquery-tmbundle/tarball/master
tar zxf kswedberg-jquery-tmbundle*.tar.gz
rm kswedberg-jquery-tmbundle*.tar.gz
mv kswedberg-jquery-tmbundle* "JavaScript jQuery.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'

Download

If you'd like to avoid the command line altogether, you can download the bundle and install it:

  1. download the zip from http://github.com/kswedberg/jquery-tmbundle/zipball/master
  2. find the zip file on your local machine and double-click to unzip it
  3. change the file name from kswedberg-jquery-tmbundle-really_long_alpha_numeric_sequence to JavaScript jQuery.tmbundle (with a dot rather than a hyphen).
  4. double-click the JavaScript jQuery.tmbundle file
  5. open TextMate and select the following menu item: Bundles > Bundle Editor > Reload Bundles
  6. show the Bundle Editor (Bundles > Bundle Editor > Show Bundle Editor)
  7. scroll through the list of bundles to confirm that the bundle has been properly installed

Other Stuff

jquery-tmbundle's People

Contributors

carlosbrando avatar infininight avatar kswedberg avatar mayankkohaley avatar minusfive avatar svnlto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-tmbundle's Issues

TextMate v1631 -- JQuery Bundle doesn't seem to work at all

I just followed your installation instructions and cloned your repo and reloaded my bundles. I see the JQuery bundle in the list and I can click on the menu items and it inserts the snippets but if I am just trying to type the shortcuts then nothing happens.

I am on TextMate Version 1.5.10 (1631). Any ideas?

$(document).ready scope selector

Isn't $(document).ready to be triggered in the source.js scope rather than source.js.jquery, since source.js.jquery itself is defined beginning with $(document).ready?

I can't install the bundle

Hi Karl,

I can't get the Bundle installed / working in TextMate.

I don't use GIT.

So I downloaded the zip file (it automatically unzipped; I work on mac and using Safari), and I renamed the folder "JavaScript jQuery.tmbundle" which is showing following content (the unzipped folder is automatically located in my download folder, and I also renamed the folder with my "Download" folder):

Commands folder
info.plist
README.md
Snippets
Support
Syntaxes

So steps 5 and 6 are not working for me:

open TextMate and select the following menu item: Bundles > Bundle Editor > Reload Bundles
show the Bundle Editor (Bundles > Bundle Editor > Show Bundle Editor)

What am I doing wrong?
Could you advise me on this?

Thanks for your support!

Best,
Youssef

changing scope selector

i noticed that all snippets have the scope selector set to "source.js.jquery". When opening *.js files, textmate does not provide those jquery snippets, unless i manually set the language to "jquery (Javascript)". Is this behavior intended, or is it possible to automatically use the jquery scope for *.js files?

wget command error..

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
wget http://github.com/kswedberg/jquery-tmbundle/tarball/master
tar zxf kswedberg-jquery-tmbundle_.tar.gz
rm kswedberg-jquery-tmbundle_.tar.gz
mv kswedberg-jquery-tmbundle* "JavaScript jQuery.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'

wget command not found in my max osx computer. i'm running version 10.6.7.. i manually downloaded the file and moved it to the bundles folder and ran the command.. =) but i believe the curl command would achieve the same thing too..

Convert Filenames to Windows supported ones

E TextEditor for windows supports TextMate bundles. I go back and forth from windows and mac when I work, but unfortunately I cannot clone this repo properly because of the : (colon) in some of the filenames under Snippets. It would be nice if this bundle was made compatible with windows/e-texteditor.

^H documentation for selection fails

/Users/robaldred/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/rexml/parsers/treeparser.rb:92:in `parse': #<rexml::parseexception: no="" close="" tag="" for="" api=""> (REXML::ParseException)
/Users/robaldred/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/rexml/parsers/treeparser.rb:28:in `parse'
/Users/robaldred/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/rexml/document.rb:227:in `build'
/Users/robaldred/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/tmp/temp_textmate.2w7pZv:8:in `new'
/tmp/temp_textmate.2w7pZv:8
...
No close tag for /api
Line: 17243
Position: 818162
Last 80 unconsumed characters:
    from /Users/robaldred/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/rexml/document.rb:227:in `build'
    from /Users/robaldred/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
    from /tmp/temp_textmate.2w7pZv:8:in `new'
    from /tmp/temp_textmate.2w7pZv:8
</rexml::parseexception:>

White line marked as invalid

Any white space between two lines is being marked as invalid by textmate when I have the jquery bundle selected.

Example

Tab triggers doesn't seem to work

I've installed the bundle and it loads up fine... But the tab triggers for the jQuery bundle don't seem to work

Any ideas?

edit: This seems to be the case for both my Macbook Pro and Mac Mini

Support for jQuery 1.4

Are there any immediate plans for updating this bundle so that it is compatible with the latest version of jQuery 1.4.x?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.