Code Monkey home page Code Monkey logo

Comments (4)

mrmartineau avatar mrmartineau commented on August 29, 2024

Hi @stackem, your issue actually applies to all jQuery. methods (jQuery.ajax(), jQuery.map() etc) so I would have to change it for all of them. Do you think that is a good idea?

from jquery.

stackem avatar stackem commented on August 29, 2024

yeah I think that would be a good change

from jquery.

gaboesquivel avatar gaboesquivel commented on August 29, 2024

Hi I'm trying to solve this problem here https://github.com/gaboesquivel/jQuery/tree/new-triggers

I've reorganized the snippets in the following directories:
├── Completion_Snippets -----> these will not include $. or jQuery.
├── Dollar_Snippets -----> these ones will include $.
├── Plugin_Snippets ----> snippets for building plugins
├── jQuery_Snippets -----> these will include jQuery.

for dollar snippets I'm using j_ prefix and for jQuery snippets J_ . Sublime snippet triggers are caseSensitive.
for completion snippets I'm not sure if we need to use .triggerString ( includes the dot ) or simply the function name as trigger.

For all them ideally we will get the list of options while typing and we need to properly describe that this is jQuery autocomplete in description.

let me know your ideas.

also what are Support and Syntaxes for?

from jquery.

paulmist avatar paulmist commented on August 29, 2024

Old issue, but one that has been bothering me only more recently.

I've implemented a "fix/hack" that's working for me.

My main issue was the snippet for $('') producing a double-$.

I edited the tabTrigger to be a double-$ and it works to produce a single $ instead. Sublime has even learned that when I use a single $ + tab it triggers this snippet accurately.

Edited snippet:

<snippet>
	<content><![CDATA[\$('${1:string/element/array/function/jQuery object/string, context}')$0]]></content>
	<tabTrigger>$$</tabTrigger>
	<description>$('#select DOM Element')</description>
	<scope>source.js</scope>
</snippet>

from jquery.

Related Issues (18)

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.